Route Map Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
32.19
set community
Use this command to add a community set clause to a route map entry.
When a BGP update message matches the route map entry, the device takes one of the
following actions:
■
changes the update’s community attribute to the specified value or values, or
■
adds the specified community value or values to the update’s community attribute, if you
specify the
additive
parameter. or
■
removes the community attribute from the update, if you specify the
none
parameter
Use the
no
parameter to remove the set clause.
Syntax
set community
[
AA:NN
] [
internet
] [
local-as
] [
no-advertise
] [
no-export
] [
additive
]
no set community
[
AA:NN
] [
internet
] [
local-as
] [
no-advertise
] [
no-export
]
set community none
Mode
Route-map mode
Usage
This command is valid for BGP update messages only.
Examples
To use entry 3 of the route map called “rmap1” to put matching routes into the no-advertise
community, use the commands:
awplus(config)#route-map rmap1 permit 3
awplus(config-route-map)#set community no-advertise
Parameter
Description
AA:NN
The number of the community, in AA:NN format.
AA and NN are both integers from 0 to 65534. AA is the
AS number. NN is a value chosen by the ASN
administrator.
local-as
The community of routes that must not be advertised to
external BGP peers (this includes peers in other
members’ autonomous systems inside a BGP
confederation).
internet
The community of routes that can be advertised to all
BGP peers.
no-advertise
The community of routes that must not be advertised to
other BGP peers.
no-export
The community of routes that must not be advertised
outside a BGP confederation boundary (a standalone
autonomous system that is not part of a confederation
should be considered a confederation itself).
none
The device removes the community attribute from
matching update messages.
additive
The device adds the specified community value to the
update message’s community attribute, instead of
replacing the existing attribute. By default this
parameter is not included, so the device replaces the
existing attribute.