Border Gateway Protocol | 221
Use these commands in the following sequence, starting in the CONFIGURATION mode, To use an IP
Community list or Extended Community List to filter routes, you must apply a
match community filter to
a route map and then apply that route map to a BGP neighbor or peer group.
To view the BGP configuration, use the
show config command in CONFIGURATION ROUTER BGP
mode. To view a route map configuration, use the
show route-map command in EXEC Privilege mode.
To view which BGP routes meet an IP Community or Extended Community list’s criteria, use the
show ip
bgp
{community-list | extcommunity-list} command in EXEC Privilege mode.
Manipulate the COMMUNITY attribute
In addition to permitting or denying routes based on the values of the COMMUNITY attributes, you can
manipulate the COMMUNITY attribute value and send the COMMUNITY attribute with the route
information.
By default, FTOS does not send the COMMUNITY attribute.
Use the following command in the CONFIGURATION ROUTER BGP mode to send the COMMUNITY
attribute to BGP neighbors.
To view the BGP configuration, use the
show config command in the CONFIGURATION ROUTER BGP
mode.
Step Command Syntax Command Mode Purpose
1
route-map map-name [permit |
deny] [sequence-number]
CONFIGURATION Enter the ROUTE-MAP mode and assign a
name to a route map.
2
match {community
community-list-name [exact] |
extcommunity
extcommunity-list-name [exact]}
CONFIG-ROUTE-MAP Configure a match filter for all routes
meeting the criteria in the IP Community or
Extended Community list.
3
exit
CONFIG-ROUTE-MAP Return to the CONFIGURATION mode.
4
router bgp as-number CONFIGURATION Enter the ROUTER BGP mode.
AS-number: 0-65535 (2-Byte) or
1-4294967295 (4-Byte) or
0.1-65535.65535 (Dotted format)
5
neighbor {ip-address |
peer-group-name} route-map
map-name {in | out}
CONFIG-ROUTER-BGP Apply the route map to the neighbor or peer
group’s incoming or outgoing routes.
Command Syntax Command Mode Purpose
neighbor {ip-address |
peer-group-name} send-community
CONFIG-ROUTER-BGP Enable the software to send the router’s
COMMUNITY attribute to the BGP neighbor
or peer group specified.