07-11-2012 05:20 PM - edited 03-07-2019 07:44 AM
Let's say I have two routers (A and B) each with their own ISP connection, with router A acting as the default gateway for the internal network. I want to configure policy based routing on router A to send traffic from specific internal sources out router B. However, I only want this to happen if router B is reachable. I know I can configure IP SLA on router A to track the reachability of router B, but I need to also track if router B has access to the internet using it's own ISP. I don't want router A sending traffic to router B if router B can't reach the internet. I'm not even sure if such tracking is possible. Thanks for the help.
07-11-2012 05:46 PM
You can try that if router A and B are running BGP with the service provides and also they are connected together using IBGP.
Have a look at this link for example and configs:
http://www.cisco.com/en/US/tech/tk365/technologies_configuration_example09186a00800945bf.shtml#conf5
HTH
07-11-2012 05:57 PM
Each router is running BGP with their ISPs and iBGP is running between them. I want to make as much use as possible of both ISPs, at least form a downstream perspective. This is a college network and students download like no other. I'm sending certian traffic to router B, then natting a second time at router B so that the return traffic comes back the same path (the ISP on router B). This allows me to make full downstream use of the ISP on router A and B. Again, my only issue is that I don't want to send traffic to router B if router B can't access the internet using it's own ISP.
07-12-2012 08:40 AM
I have not done anything quite like this but I think that it should be possible. My suggestion would be to approach it in this way:
- pick some resource in the Internet (probably one that is not very important to you).
- on router A configure a static route for that resource that sends it to router B to get to the Internet.
- configure PBR using the verify availability/IP SLA to check the resource that is reached through router B. If that destination is reachable you have proved that router B is working and has Internet reachability.
HTH
Rick
07-12-2012 03:24 PM
-you can configure a dummy static route on routerB to null0 while tracking object with ipIcmpEcho pinging ISP side address and using source IP connected to ISP. If ping from source to ISP is successfull then this route would go into routing table.
"ip route x.x.x.x 255.255.255.255 Null0 track 10"
"track 10 rtr 5 reachability"
- Redistribute this static route to the core router (maybe routerA in this case)
- Configure policy based routing on routerA with option "set ip next-hop verify-availability
& track 20 ip route
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide