set ip default next-hop verify-availability




set ip next-hop ip-address [...ip-address] no set ip next-hop ip-address [...ip-address]


Syntax Description:

ip-address IP address of the next hop to which packets are output. The next hop must be an adjacent router.


Command Description:

To indicate where to output packets that pass a match clause of a route map for policy routing, use the set ip next-hop command in route-map configuration mode. To delete an entry, use the no form of this command.

Use the ip policy route-map interface configuration command, the route-map global configuration command, and the match and set route-map configuration commands, to define the conditions for policy routing packets. The ip policy route-map command identifies a route map by name. Each route-map has a list of match and set commands associated with it. The match commands specify the match criteria--the conditions under which policy routing occurs. The set commands specify the set actions--the particular routing actions to perform if the criteria enforced by the match commands are met.

If the interface associated with the first next hop specified with the set ip next-hop command is down, the optionally specified IP addresses are tried in turn.

The set clauses can be used in conjunction with one another. They are evaluated in the following order:

1. set ip next-hop

2. set interface

3. set ip default next-hop

4. set default interface


In the following example, packets with a Level 3 length of 3 to 50 bytes are output to the router at IP address

Router(config)# interface serial 0
Router(config-if)# ip policy route-map thataway
Router(config)# route-map thataway
Router(config-route-map)# match length 3 50
Router(config-route-map)# set ip next-hop


The set ip next-hop and set ip default next-hop are similar commands but have a different order of operations. Configuring the set ip next-hop command causes the system to use policy routing first and then use the routing table. Configuring the set ip default next-hop command causes the system to use the routing table first and then policy route the specified next hop.

Related Commands:

ip policy route-map
match ip address
match length
set default interface
set ip default next-hop verify-availability

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)