11-21-2006 12:11 AM - edited 03-03-2019 02:46 PM
Dear;
The diagram attached explain my network
I have inside network 10.10.10.0/24
I need to utilize the two ISP
I need to let some servers to go to ISP1
and the other to ISP2
servers 10.10.10.11,12,13 to ISP1
the rest to ISP2
these servers will go to ISP1; if fail then they should go to ISP2
i configured a route map that capture those servers; then assign a next hop using the command :
** set ip next-hop IP1, IP2
if IP1 reachable then it's the next hop
if not; then check IP2 reachability and become the next hop .. RIGHT !!!!
the following is my config :
--------------------------------------
conf t
access-list 10 permit host 10.10.10.11
access-list 10 permit host 10.10.10.12
access-list 10 permit host 10.10.10.13
access-list 10 deny ip any any
!
!
route-map isp1-map permit 10
match ip address 10
set ip next-hop 192.168.1.2 192.168.2.2
exit
end
ip route 0.0.0.0 0.0.0.0 192.168.2.2
--------------------------------------
all is going fine BUT :
when ISP1 fail (192.168.1.2) it does not go to ISP2 (192.168.2.2)
plz do u have any comments
11-21-2006 12:55 AM
Hi
11-21-2006 01:22 AM
Dear;
Do you have any comments?
11-21-2006 01:41 AM
Hi
I think problem is that your router cannot detect ISP1 is down. You will need to use "Policy Based Routing with the Multiple Tracking Options Feature". This way, your router can detect ISP1 failure (by means of ping packets) and select the other ISP.
Here you can find an example:
http://www.cisco.com/en/US/tech/tk364/technologies_configuration_example09186a0080211f5c.shtml
Hope this helps
11-21-2006 01:49 AM
Dear;
you mean the first Set command will be executed only if the network is reachable;
else
the second set will be tested and executed ?
Thanks
11-21-2006 02:17 AM
Yes, you are right
11-21-2006 01:49 AM
One thing to try would be to remove the default ip address from the set ip next-hop statement- I.E change it to
set ip next-hop 192.168.1.2
Then if the 1.2 link fails PBR should fail and traffic should then follow the default route.
NOTE
This will only happen if the link fails in such a way that line protocol goes down on the interface and the route is removed from the routing table.
If you need to track either reachability or IP routing the following may help
Regds
N
11-21-2006 02:15 AM
Thanks;
I tried to set ip next-hope ISP1
i throught it will go to the routing table if ISP1 fail; but it did not;
So i configured it to configure Set ip next-hope ISP1, ISP2.
but the same; it did not work
once the ISP1 fail (which is in route map)
the traffic did not forwarded anywhere even to the routing table.
any solution please.
but
11-21-2006 02:45 AM
Hi Basheer,
Can you try something like this
route-map isp1-map permit 10
match ip address 10
match interface
set interface
Now till the time both the matching statements does not return true value set condition will not work and should fall for normal routing process.
Try and update if it works.
Ankur
11-21-2006 03:07 AM
Dear;
Thanks Ankur; I will try this solution
11-21-2006 05:44 AM
Hi Basheer,
Jolmo has provided a link which will solve your problem (below). Have you tried it? It will require 12.3(4)T or above IOS.
route-map TEST permit 10
set ip next-hop verify-availability 192.168.1.2 10 track 123
set ip next-hop verify-availability 192.168.2.2 20 track 124
rtr 1
type echo protocol ipIcmpEcho 192.168.1.2
rtr schedule 1 life forever start-time now
rtr 2
type echo protocol ipIcmpEcho 192.168.2.2
rtr schedule 2 life forever start-time now
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