ECS4660-28F_Management Guide-R03

Table Of Contents
C
HAPTER
51
| IP Routing Commands
Policy-based Routing for BGP
– 1902
EXAMPLE
Console(config)#route-map RD permit 1
Console(config-route-map)#description AS-Path rule
Console(config-route-map)#match as-path 60
Console(config-route-map)#set weight 30
Console(config-route-map)#
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 (1833)
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.