set extcommunity

Sets an extended BGP community attribute in a route-map instance.

Syntax

set extcommunity { rt extcommunity value | soo extcommunity value }
no set extcommunity

Command Default

No extended BGP community attribute is set.

Parameters

rt
Specifies the route target (RT) extended community attribute.
soo
Specifies the site of origin (SOO) extended community attribute.
extcommunity value
Specifies the value. The value can be one of the following:
ASN:nn—autonomous-system-number:network-number
Autonomous system (AS) number and network number.
IPAddress:nn—ip-address:network-number
IP address and network number.

Modes

Route-map configuration mode.

Usage Guidelines

Enter no set extcommunity to delete an extended community set statement from the configuration file.

Examples

The following example sets the route target to extended community attribute 1:1 for routes that are permitted by the route map.

device# configure terminal
device(config)# route-map extComRmap permit 10
device(config-route-map-sendExtComRmap/permit/10)# set extcommunity rt 1:1

The following example sets the site of origin to extended community attribute 2:2 for routes that are permitted by the route map.

device# configure terminal
device(config)# ip community-list extended 1 permit 123:2
device(config)# route-map extComRmap permit 10
device(config-route-map-sendExtComRmap/permit/10)# set extcommunity soo 2:2