Differences between Route-map sub-command i.e set ip next-hop/set ip default next-hop/set default interface

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:

PBR

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

 

Architect/Consultant in IT/Telecom/Networking Support Industry with over 13+ years of Experience. Mainly working with Cisco Products other than Cisco worked with VMware NSX/Juniper/Riverbed/Meraki & Citrix Products, and worked with various clients like PSU Banks, Petroleum Corporations, different government sector clients, BPO Sector, Telecom NOC and ISP. Global Certifications: VMware vSphere Foundation 6 CCNA Routing & Switching CCNP Routing & Switching ITIL V3 Foundation RTSA-W RTSS-W RSA RTSA-NPM RTSS-NPM Aspiring Certifications: VCP-NV

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.