Set community – Enterasys Networks X-Pedition XSR CLI User Manual
Page 311

BGP Set Commands
XSR CLI Reference Guide 6-115
Syntax of the “no” Form
The no form of this command removes the AS path value:
no set as-path
Mode
Route‐map configuration:
XSR(config-route-map)#
Example
The following example configures the as‐path value in the context of configuring a route map and
the
match
command. The
match as-path
command references AS‐path access list 37 which
identifies the BGP routing updates to which the
set as-path
command will apply.
In this case, match clause ʺ.*ʺ will match all routes. Relevant updates will have one instance of the
AS number 100 prepended into their AS path variable. Assuming that all of the BGP route
selection criteria remain the same, the routes with the fewest AS numbers in the AS path variable
will be chosen as the best routes to the identified destinations. If more than one AS path is to be
prepended, then the string should be surrounded by quotes.
XSR(config)#ip as-path access-list 37 permit ".*"
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 37
XSR(config-route-map)#set as-path prepend 100
XSR(config-route-map)#set as-path prepend "100 100"
set community
This command specifies the community attribute in a BGP routing update message. Be sure that a
match clause has been specified.
A community is a group of destinations which share the community attribute. A BGP speaker can
use the community attribute to control which routing data it accepts or distributes to neighbors. A
BGP speaker can append the community attribute to routes it receives that do not already have the
attribute.
Syntax
set community {community-number | aa:nn | additive | internet | local-AS | no-
advertise | no-export | none}
as-path-string
The AS path list which will be prepended to the AS path attribute of the
route that matches the route map. The as‐path list represents one or more
valid AS numbers that are specified as an integer between 1 and 65535.
community-number
The community number. Range: 1 to 4,294,967,295.
aa:nn
Community number in the format aa:nn where
aa
identifies the AS and
nn
the community within the AS. Range: 1 to 65,535.
additive
Adds the community to existing communities.
internet
Established
Internet community.