Specifications

Table Of Contents
route-target
MP-407
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
Usage Guidelines The route-target command creates lists of import and export route target extended communities for the
specified VRF. Enter the command one time for each target community. Learned routes that carry a
specific route-target extended community are imported into all VRFs configured with that extended
community as an import route target. Routes learned from a VRF site (for example, by Border Gateway
Protocol (BGP), Routing Information Protocol (RIP), or static route configuration) contain export route
targets for extended communities configured for the VRF added as route attributes to control the VRFs
into which the route is imported.
The route target specifies a target VPN extended community. Like a route-distinguisher, an extended
co
mmunity is composed of either an autonomous system number and an arbitrary number or an IP
address and an arbitrary number. You can enter the numbers in either of these formats:
16-bit autonomous-system-number:your 32-bit number
For example, 101:3.
32-bit IP address:your 16-bit number
For example, 192.168.122.15:1.
In Cisco IOS Release 12.0(32)SY8, 12.2(33)SXI1, 12.0(33)S3, Cisco IOS XE Release 2.4, and later
re
leases, the Cisco implementation of 4-byte autonomous system numbers uses asplain—65538 for
example—as the default regular expression match and output display format for autonomous system
numbers, but you can configure 4-byte autonomous system numbers in both the asplain format and the
asdot format as described in RFC 5396. To change the default regular expression match and output
display of 4-byte autonomous system numbers to asdot format, use the bgp asnotation dot command
followed by the clear ip bgp * command to perform a hard reset of all current BGP sessions.
In Cisco IOS Release 12.0(32)S12, 12.4(24)T, and Cisco IOS XE Release 2.3, the Cisco implementation
of
4-byte autonomous system numbers uses asdot—1.2 for example—as the only configuration format,
regular expression match, and output display, with no asplain support.
Examples The following example shows how to configure route-target extended community attributes for a VRF
i
n IPv4. The result of the command sequence is that VRF named vrf1 has two export extended
communities (1000:1 and 1000:2) and two import extended communities (1000:1 and 10.27.0.130:200):
ip vrf vrf1
route-target both 1000:1
route-target export 1000:2
route-target import 10.27.0.130:200
The following example shows how to configure route-target extended community attributes for a VRF
that includes IPv4 and IPv6 address families:
vrf definition site1
rd 1000:1
Cisco IOS XE
Release 2.3
This command was modified. Support for 4-byte autonomous system
numbers in asdot notation only was added.
12.2(33)SXI1 This command was modified. Support for 4-byte autonomous system
num
bers in asplain and asdot notation was added.
12.0(33)S3 This command was modified. Support for asplain notation was added and the
de
fault format for 4-byte autonomous system numbers is now asplain.
Cisco IOS XE
Re
lease 2.4
This command was modified. Support for asplain notation was added and the
default format for 4-byte autonomous system numbers is now asplain.
Release Modification