Chapter 50
| IP Routing Commands
Policy-based Routing for BGP
– 1158 –
Command Usage
The weights assigned by the match as-path and set weight route-map commands
command override the weight assigned using the BGP neighbor weight command.
Example
Console(config)#route-map RD permit 1
Console(config-route-map)#match as-path 60
Console(config-route-map)#set weight 30
Console(config-route-map)#
Related Commands
ip as-path access-list (1086)
match community This command sets a BGP community access list to match. Use the no form to
remove this entry from a route map.
Syntax
match community {1-99 | 100-500 | community-list-name} [exact-match]
no match community
1-99 – Standard community list number that identifies one or more groups
of communities.
100-500 – Expanded community list number that identifies one or more
groups of communities.
community-list-name – Name of standard or expanded community list.
(Maximum length: 32 characters, no spaces or other special characters)
exact-match – Must exactly match the specified community list. All and
only those communities specified must be present.
Command Mode
Route Map
Command Usage
This command matches the community attributes of the BGP routing message
following the rules specified with the ip community-list command.
Example
Console(config)#route-map RD permit 2
Console(config-route-map)#match community 60
Console(config-route-map)#set weight 30
Console(config-route-map)#