BGP and BGP4+ Commands

set community (Route Map)

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 after specifying another parameter. or

removes the community attribute from the update, if you specify the none parameter Use the no variant of this command to remove the set clause.

Syntax set community {[<1-65535>][AA:NN] [internet] [local-AS] [no-advertise] [no-export] [additive]}

no set community {[AA:NN] [internet] [local-AS] [no-advertise] [no-export] [additive]}

set community none

no set community none

Parameter

Description

 

 

<1-65535>

The AS number of the community as an integer not in AA:NN

 

format.

 

 

AA:NN

The Autonomous System (AS) number of the community, in AA:NN

 

format. AS numbers are assigned to the regional registries by the

 

IANA (www.iana.org) and can be obtained from the registry in

 

your region.

 

AA and NN are both integers from 1 to 65535.

 

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.

 

 

Mode Route-map Configuration

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

3.204

AlliedWare PlusTM Operating System - Software Version 5.4.3-2.6

C613-50032-01 REV D

Page 302
Image 302
Allied Telesis BGP4, VERSION 5.4.3-2.6 manual Set community Route Map, Internet, None, Additive