
C613-50186-01 Rev B
Command Reference for AR2050V
1408
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
R
OUTE
M
AP
C
OMMANDS
SET
EXTCOMMUNITY
set extcommunity
Overview
Use this command to add an extended community set clause to a route map entry.
A route map entry can have a route target extended community set clause, a
site-of-origin extended community set clause, or both.
When a BGP update message matches the route map entry, the device sets the
update’s extended community attribute to the specified value or values.
Use the
no
variant of this command to remove the set clause.
Syntax
set extcommunity {rt|soo} <
extcomm-number
>
no set extcommunity {rt|soo} [<
extcomm-number
>]
Mode
Route-map Configuration
Usage
This command is valid for BGP update messages only.
Examples
To use entry
3
of the route map called
rmap1
to set the route target extended
community attribute to 06:01, use the commands:
awplus#
configure terminal
awplus(config)#
route-map rmap1 permit 3
awplus(config-route-map)#
set extcommunity rt 06:01
To instead specify the extended community number in dotted decimal notation,
use the command:
awplus#
configure terminal
awplus(config)#
route-map rmap1 permit 3
awplus(config-route-map)#
set extcommunity rt 0.0.0.6:01
To use entry
3
of the route map called
rmap1
to set the site-of-origin extended
community attribute to 06:01, use the commands:
awplus#
configure terminal
awplus(config)#
route-map rmap1 permit 3
awplus(config-route-map)#
set extcommunity soo 06:01
Parameter
Description
rt
Configure a route target extended community. This consists
of routers that will receive matching routes.
soo
Configure a site-of-origin extended community. This
consists of routers that will inject matching routes into BGP.
<extcomm-number>
The extended community number, in the format AA:NN or
IPADD:N.