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.
Privilege:
Security Administrator,
Administrator
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.
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.
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.
Usage:
Use this command to
create the list of export and/or import route target extended communities
for VRF.
A maximm of 5 route
targets can be defined with this command up to release 9.0.
A
maximm of 10 route targets can be defined with this command
from release 10.0 onward.
IMPORTANT:
This command must
be executed for each route target extended community.
Example:
The following command
creates an export list of route target extended community
12345 for
VRF with AS number
300:
route-target export
300 12345
The following command
creates an export list of route target extended community
12345 for
VRF with IP address
192.168.1.2:
route-target export
192.168.1.2 12345