Chapter 29
| IP Routing Commands
Policy-based Routing for BGP
– 996 –
match as-path This command sets a BGP autonomous system path access list to match. Use the no
form to remove this entry from a route map.
Syntax
[no] match as-path access-list-name
access-list-name – Name of the access list. (Maximum length: 16 characters,
no spaces or other special characters)
Command Mode
Route Map
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 (923)
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