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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Policy routing

Hello,

Can i do policy routing only if a route it´s present?. My problem is that i want send some traffic to other router but if this router loose the internet conection my router continues send it this traffic and it´s droped

Regards.

3 REPLIES
New Member

Re: Policy routing

If all of the routers are connected via a common Ethernet segment you could run HSRP between the Internet router and the other router with the Internet router being the primary. Then you can policy route your traffic to the HSRP address. If you configure HSRP to track your internet connection and there is a failure, HSRP would fail over to the standby router. PBR would then be sending the traffic to the other router to meet your requirement.

Bronze

Re: Policy routing

New Member

Re: Policy routing

You could do

set ip next-hop 192.168.1.1 verify-reachablility

or

set ip next-hop 172.16.1.1 verify-reachablility 172.16.1.1 track #

With the first one it will use CDP to check if that address is present as one of the cdp neighbors

and with the second one you can us ip sla to track a route's reachability based on a ping or any other ip sla.

TK

387
Views
0
Helpful
3
Replies
CreatePlease to create content