I was always having a doubt what are the differences between these three route-map sub-command i.e set IP next-hop/set IP default next-hop/set default interface, lastly, in GNS3, I created the topology and cleared my doubt. Please find the topology below which I created for testing the same:
And the outcome is below:
1. set ip next-hop: If next hop exists in the routing table then it will policy route the traffic to the next hop otherwise according to the default routing table.
2. set ip default next-hop: If the destination exists in the routing table then it will not policy route the traffic and if the destination does not exist in the routing table then it will policy route the same.
3. set default interface: As same as default next-hop, i.e If the destination exists in the routing table then it will not policy route the traffic and if the destination does not exist in the routing table then it will policy route the same over the specified interface.
Also, please remember that if you configure all three or any two in the same route-map, then the order of preference is below:
set ip next-hop > set ip default next-hop > set default interface.
I hope this helps you guys. If you like it then do not forget to hit the like button and share it with your friends and family.
All the best Guys.
Thanks,
Maddy