PBR next-hop and default next-hop
When implementing Policy Based Routing, the set ip default next-hop
and the set ip next-hop
commands perform two different functions. These are described in detail below:
The set ip default next-hop
command verifies the existence of the destination IP address in the routing table, and…
- if the destination IP address exists, the command does not policy route the packet, but forwards the packet based on the routing table.
- if the destination IP address does not exist, the command policy routes the packet by sending it to the specified next hop.
The set ip next-hop
command verifies the existence of the next hop specified, and…
- if the next hop exists in the routing table, then the command policy routes the packet to the next hop.
- if the next hop does not exist in the routing table, the command uses the normal routing table to forward the packet.
Links:
https://forum.networklessons.com/t/how-to-configure-policy-based-routing/945/73?u=lagapides
https://www.cisco.com/c/en/us/support/docs/ip/ip-routed-protocols/47121-pbr-cmds-ce.html