Cisco Cisco Packet Data Gateway (PDG)

Pagina di 2186
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.
Product
All
Privilege
Security Administrator, Administrator
Command Modes
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 Description
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.
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.
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.
as_value
Specifies a 16-bit autonomous-system (AS) number expressed as an integer from 0 through 65535.
   Command Line Interface Reference, Modes A - B, StarOS Release 19
1900
BGP IP VRF Configuration Mode Commands
route-target