577
Command Mode:
Global mode
Usage Guide:
Enable BGP by specified AS, and then enter the config-router state, the
protocol can be configured at this prompt. In case no bgp multiple-instance is configured
while a BGP is enabled, enabling new BGP instance will return with error. If bgp
multiple-instance is configured, you can enable several BGP however the name of the
instance has to be specified with view parameter. The NO form will cancel the
configuration of this BGP instance.
Example:
Switch(config)#router bgp 200
Switch(config-router)#exit
Switch(config)#bgp multiple-instance
Switch(config)#router bgp 200
Switch(config-router)#exit
Switch(config)#router bgp 300 view as300
Switch(config)#no router bgp 300 view as300
Switch(config)#no router bgp 200
14.8.3.82 route-target
Command: route-target {import|export|both} <rt-val>
no route-target {import|export|both} <rt-val>
Function:
Configure the route extended community attributes, so to determine whether
the route be spreaded to specific VRF.
Parameter: <rt-val>
is the same as RD form, standing for the extended community
attributes of the routes.
Command Mode:
vrf mode
Usage Guide:
Under VRF mode, the configured RT attributes decides which VRF will
accept the route. There are 3 RT configurations: the import RT stands for the RT value
acceptable by this VRF, the export RT represents the RT value carried with this VRF
when routing spreading, both refers to above two option both enabled. If the export RT
carried with the received route ever matches with the import RT of this VRF, then this
VRF will accept this route or else not (except for the no bgp inbound-route-filter is
configured which enanbles RD match). Several RT can be configured on the same VRF.
Normally we set one RT with the both mode so to equal the RD and RT_VALUE.
Example:
Switch(config)#ip vrf DC1
Switch(config-vrf)#rd 100:10
Switch(config-vrf)#route-target both 100:10
Switch(config-vrf)#