Users Guide

Table Of Contents
Layer 3 Routing Commands 1558
set ip next-hop
Use this command to specify an adjacent next-hop router in the path toward
the destination to which the packets should be forwarded. Use the no form of
this command to remove a set command from a route map.
Syntax
set ip next-hop ip-address [ip-address]
no set ip next-hop ip-address [ip-address]
ip-address
—The IP address of the next hop to which packets are routed. It
must be the address of an adjacent router (i.e., the next hop must be in a
subnet configured on the local router). A maximum of 16 next-hop IP
addresses can be specified.
Default Configuration
There is no default configuration for this command.
Command Mode
Route Map mode
User Guidelines
Use this route map clause to override active routes in the routing table. This
command affects all matching packet types and is used if an active route for
the next hop exists in the routing table. The next hop IP address must be
associated with a directly connected subnet on the router. If no resolvable
active interface is present in the route table, the packet is routed using the
default routing table. If more than one IP address is specified, the first IP
address associated with a link up interface is used to route the packets.
Only one of set ip next-hop, set ip default next-hop, or set interface null0
may be specified in a route map.
Example
console(config-route-map)#set ip next-hop 192.0.2.1