Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

Policy based routing over 2 hops with tracking

We are looking to policy route traffic that enters an interface on one switch and send it to an ISP connected on an interface on another switch.

If we were not looking to ensure availability of the next hop, we could simply use set ip next-hop recursive, however, we need to ensure that the next hop is available along the path and I am trying to determine if this is possible.

If I understand correctly, in order to use a set ip next-hop verify-availability command in a route map, the next hop ip has be reachable from a directly connected interface.  This means in order to do what I am trying to accomplish I will need 2 policy routes, one on the switch where the ingress traffic to be policy routed originates that sends it over to the second router that is connected to the ISP that I want to send the traffic to, and the other on the router connected to the ISP to send the traffic to the ISP.

What is the best way to design these route maps to accomplish this?  Is their a better solution that accomplishes the same thing?

Community Member

Policy based routing over 2 hops with tracking

any help?

Hall of Fame Super Gold

Policy based routing over 2 hops with tracking

Perhaps I am not understanding your comment about setting next-hop with verify-availability. You seem to say that it requires that the target be directly connected. But that is not the case. I have used verify-availability with a target that was several hops away and it worked just fine.

You are correct that you will need Policy Based Routing configured with its route map on the switch where the traffic enters. And you will probably need another PBR configured with its route map on the router that is connected to the ISP. (and if there are other layer 3 hops between the entering switch and the router then they may need PBR as well).

Without understanding more about the network I am not sure that there is much other advice that I can offer at this point. If you need additional advice then please provide more information about the network and what you are attempting to accomplish.



Community Member

Policy based routing over 2 hops with tracking

I don't rmemeber where at this point, however I thought I remember reading that in order to use verify-availability it had to be a directly connected subnet.

If that is not the case (and if you are using it without issue it obviously is not the case), then nothing fancy really needs to be done for my configuration with the exception of 2 tracking objects (one for the "final" interface and one for our local link to ensure that is the route it is taking to get there).

I appreciate the assistance.

CreatePlease to create content