Chapter 50
| IP Routing Commands
Policy-based Routing for BGP
– 1160 –
Related Commands
ip prefix-list (1091)
Access Control Lists (395)
match ip next-hop This command specifies the next-hop addresses to be matched in a standard access
list, an extended access list, or a prefix list. Use the no form to remove this entry
from a route map.
Syntax
match ip next-hop {access-list-name | prefix-list prefix-list-name}
no match ip next-hop
access-list-name – Name of standard or extended access list.
(Maximum length: 32 characters, no spaces or other special characters)
prefix-list-name – Name of a specific prefix list.
Command Mode
Route Map
Command Usage
When inbound update messages are received from a neighbor, next-hop
information contained in Network Layer Reachability Information (NLRI) entries is
checked against the specified access-list or prefix-list before any routes are learned.
Example
Console(config)#route-map RD permit 5
Console(config-route-map)#match ip next-hop rd-next-hops
Console(config-route-map)#set weight 30
Console(config-route-map)#
match ip route-source This command specifies the source of routing messages advertised by routers and
access servers to be matched in a standard access list, an extended access list, or a
prefix list. Use the no form to remove this entry from a route map.
Syntax
match ip route-source {access-list-name | prefix-list prefix-list-name}
no match ip route-source [access-list-name | prefix-list]
access-list-name – Name of standard or extended access list.
(Maximum length: 32 characters, no spaces or other special characters)
prefix-list-name – Name of a specific prefix list.
Command Mode
Route Map