cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1392
Views
0
Helpful
10
Replies

Route Map; next hop

w_basheer
Level 1
Level 1

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

10 Replies 10

ankbhasi
Cisco Employee
Cisco Employee

Hi

Dear;

Do you have any comments?

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

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

Yes, you are right

ndarnell
Level 1
Level 1

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

http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_feature_guide09186a00801541be.html#wp1040072

Regds

N

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

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

Dear;

Thanks Ankur; I will try this solution

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card