Administrator Guide

Layer 3 Routing Commands 1332
Example
The following example shows how to configure route target extended
community attributes for a VRF instance in IPv4. The result of this
command sequence is that VRF named Customer_A has two export
extended communities (100:10 and 300:10) and two import extended
communities (300:10 and 192.168.10.1:10).
console(config)#ip vrf Customer_A
console(config-vrf-Customer_A)#route-target export 100:10
console(config-vrf-Customer_A)#route-target import 192.168.10.1:10
console(config-vrf-Customer_A)#route-target both 300:10
console(config-vrf-Customer_A)#exit
set extcommunity rt
Use the set extcommunity rt command to set BGP extended community
attributes for the route target. Use the no form of the command to remove
the extended community attributes for the route target.
NOTE: This command is effective only if BGP is running on the router.
Syntax
set extcommunity rt
value
[additive]
no set extcommunity rt
value
— Specifies the route target extended community value. This value
can be entered in one of the following formats:
16-bit AS number :your 32-bit value (Ex : 100 :11)
32-bit IPv4 address :your 16-bit value (Ex : 10.1.1.1 :22
additive
–Adds a route target to the exsisting route target list without
replacing any existing route targets.
Default Configuration
No RT extended community attributes are set.
Command Mode
Route Map Configuration mode
2CSNXXX_SWUM204.book Page 1332 Monday, January 25, 2016 1:25 PM