set default-next-hop (policy) (S-, K-Series)

Use this command to set up to 5 default next hop IP addresses for packets matching an access list in a configured route-map.


set default-next-hop {next-hop1}[]
no set default-next-hop {next-hop1}[]


next-hop Specifies a next hop IP address. Up to five addresses can be specified per command line.




Policy-based routing configuration.


The set default-next-hop command augments the set next-hop command. A configured default-next-hop is only used when the following criteria are both true:

  • No next hops have been configured with the set next-hop command, or the configured next hop IP addresses are not available
  • The destination IP lookup results in the default route being returned.

If both criteria are true, the next hop will be chosen from the default-next-hop IP address list, using the next hop selection setting configured with the command ip policy load-policy (S-, K-Series).

The priority configured with the command ip policy priority (S-, K-Series) does not apply when using the default-next-hop.

Up to 128 unique next hops can be configured per policy route-map, 5 per command line, using multiple command lines. The total number of next hops includes both default-next-hops configured using this command and standard next hops configured using the command.

The “no” form of this command deletes the specified default-next hop IP address(es).


This example shows how to set IP address as the default next hop for packets matching ACL 1:

System(rw-config)->route-map policy 101 permit 20
System(rw-config-route-map-pbr)->match ip address 1
System(rw-config-route-map-pbr)->set default-next-hop