DGS-6604
m
set ip default next-hop
set ip default next-hop IP-ADDRESS
no set default next-hop [IP-ADDRESS]
Syntax Description
IP-ADDRESS
Default
Command Mode
Usage Guideline
Example
CLI Reference Guide
Use the command in route-map configuration mode to set the next hop to route
the packets that pass a match clause of a route map and there is no route for the
packets. To remove the setting, use the no form of the command to remove the
setting.
Specify the next hop to route the packet. the next hop must be an adjacent
router.
Not configured
Route-map configuration
If other set clauses for policy based routing are used with the command, they will
be evaluated based on the following ordering:
1. set ip next-hop
2. set interface
3. set ip default next-hop
4. set default interface
With this ordering, the set next-hop clauses and the set interface clauses will be
evaluated before look up of the routing table. If route cannot be found for the
packets, the set ip default next-hop and set default interface command will be
evaluated.
In the following example, PBR will change the next-hop setting when the source
ip is 10.1.1.0/24 ,vlan is vlan100 and can not found the destination address in
routing table. We want to set next-hop of this route entry to 120.1.2.2. The steps
as follows:
At first, create an IP basic access list, named Strict-Control which permit prefix
10.1.1.0/24.
Secondly, create a route map, named myPolicy which define a match rule to
associate ip address prefix-list to the previously created access list, Strict-
Control.
set ip default next-hop
544