SROS Command Line Interface Reference Guide
Route Map Command Set
5991-2114
© Copyright 2007 Hewlett-Packard Development Company, L.P.
1290
set community [
<community-number>
| internet | local-as | no-export |
no-advertise | none] [add]
Use the
set community
command to modify the community attribute for all paths serviced by the route
map. Use the
no
form of this command to disable this feature.
Syntax Description
<community-number>
Sets the community attribute to the specified community number for routes
serviced by this route map. This is a numeric value that can be an integer from 1
to 4,294,967,295 or string in the form “aa:nn", where the value of "aa" is the AS
number and the value of "nn" is the community number. Multiple
community-number parameters can be present in the command.
internet
Sets the community attribute to the INTERNET community number for routes
serviced by this route map.
local-as
Sets the community attribute to the NO_EXPORT_SUBCONFED community
number for routes serviced by this route map. Routes containing this attribute
should not be advertised to external BGP peers.
no-export
Sets the community attribute to the NO_EXPORT community number for routes
serviced by this route map. Routes containing this attribute should not be
advertised to BGP peers outside a confederation boundary.
no-advertise
Sets the community attribute to the NO_ADVERTISE community number for
routes serviced by this route map. Routes containing this attribute should not be
advertised to any BGP peer.
none
Removes all communities from BGP routes serviced by this route map.
add
Appends the listed community number to the end of the community attribute for
routes serviced by this route map.
Default Values
No default value necessary for this command.
Usage Examples
The following example sets the community number for BGP routes to the well-known INTERNET
community:
ProCurve(config)#
route-map MyMap permit 100
ProCurve(config-route-map)#
set community internet