Cisco Cisco Packet Data Interworking Function (PDIF) Prospecto
BGP IP VRF Configuration Mode Commands
route-target ▀
Cisco ASR 5x00 Command Line Interface Reference ▄
1577
route-target
Adds an export and/or import list of extended route target communities to the VRF. BGP uses an extended-community
attribute, the route target, to filter appropriate VPN routes into the correct VRFs. You configure the export list on the
VRF to specify export route targets. When BGP advertises a route from this VRF’s forwarding table, it associates the
list of export route targets with the route and includes this attribute in the update message that advertises the route. You
also configure a route-target import list on each VRF to specify import route targets.
attribute, the route target, to filter appropriate VPN routes into the correct VRFs. You configure the export list on the
VRF to specify export route targets. When BGP advertises a route from this VRF’s forwarding table, it associates the
list of export route targets with the route and includes this attribute in the update message that advertises the route. You
also configure a route-target import list on each VRF to specify import route targets.
Product
All
Privilege
Security Administrator, Administrator
Mode
Exec > Global Configuration > Context Configuration > BGP Configuration > BGP-IP VRF Configuration
configure > context context_name > router bgp as_number > ip vrf vrf_name
Entering the above command sequence results in the following prompt:
[context_name]host_name(config-bgp-vrf)#
Syntax
route-target { both | import | export } { as_value | ip_address } rt_value
route-target both
Creates a list of import and export route targets for the VRF with the same parameters. The list contains an
AS number or IP address along with a route target (RT) value.
AS number or IP address along with a route target (RT) value.
route-target import
Creates a list of import RTs for the VRF with the same parameters. The list contains an AS number or IP
address along with an RT value.
address along with an RT value.
route-target export
Creates a list of export RTs for the VRF with the same parameters. The list contains an AS number or IP
address along with an RT value.
address along with an RT value.
as_value
Specifies a 16-bit autonomous-system (AS) number expressed as an integer from 0 through 65535.
ip_address
Specifies an IP address in IPv4 dotted-decimal notation.
rt_value
Specifies a unique RT identifier as an integer from 0 through 4294967295.