Specifications

Table Of Contents
route-target
MP-408
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
address-family ipv4
route-target export 100:1
route-target import 100:1
address-family ipv6
route-target export 200:1
route-target import 200:1
The following example available in Cisco IOS Release 12.0(32)SY8, 12.2(33)SXI1, 12.0(33)S3,
Cisco IOS XE Release 2.4, and later releases, shows how to create a VRF with a route-target that uses a
4-
byte autonomous system number in asplain format—65537—and how to set the route-target to
extended community value 65537:100 for routes that are permitted by the route map.
ip vrf vpn_red
rd 64500:100
route-target both 65537:100
exit
route-map red_map permit 10
set extcommunity rt 65537:100
end
After the configuration is completed, use the show route-map command to verify that the extended
community is set to the route target containing the 4-byte autonomous system number of 65537.
Router# show route-map red_map
route-map red_map, permit, sequence 10
Match clauses:
Set clauses:
extended community RT:65537:100
Policy routing matches: 0 packets, 0 bytes
The following example available in Cisco IOS Release 12.0(32)SY8, 12.0(32)S12, 12.2(33)SXI1,
12.4(24)T, Cisco IOS XE Release 2.3, and later releases, shows how to create a VRF with a route-target
th
at uses a 4-byte autonomous system number in asdot format—1.1—and how to set the route-target to
extended community value 1.1:100 for routes that are permitted by the route map.
ip vrf vpn_red
rd 64500:100
route-target both 1.1:100
exit
route-map red_map permit 10
set extcommunity rt 1.1:100
end
Related Commands Command Description
bgp asnotation dot Changes the default display and the regular expression match format of BGP
4-
byte autonomous system numbers from asplain (decimal values) to dot
notation.
import map Configures an import route map for a VRF.
ip vrf Configures a VRF routing table.
vrf definition Configures a VRF routing table and enters VRF configuration mode.