Chapter 50
| IP Routing Commands
Policy-based Routing for BGP
– 1163 –
boundary, then the AS number of the confederation member inside of the
AS_PATHLIMIT attribute should be replaced by the confederation's AS number.
Example
Console(config)#route-map RD permit 8
Console(config-route-map)#match pathlimit as 5
Console(config-route-map)#on match goto 20
Console(config-route-map)#
match peer This command sets the peer address to match in routing messages. Use the no
form to remove this entry from a route map.
Syntax
match peer {peer-address | local}
no match peer [peer-address | local]
peer-address – IP address of neighboring router sending routing messages.
local – Static or redistributed routes.
Command Mode
Route Map
Example
Console(config)#route-map RD permit 9
Console(config-route-map)#match peer 192.168.0.99
Console(config-route-map)#set weight 30
Console(config-route-map)#
on-match This command sets the next entry to go to when this entry matches. Use the no
form to remove this entry from a route map.
Syntax
on-match peer {goto sequence-number | next}
no on-match peer {goto | next}
goto – On match, go to specified entry.
sequence-number – Route-map entry. (Range: 1-65535)
next – Go to next entry.
Command Mode
Route Map
Command Usage
Use this command when no set action is for a match clause.