M
M
m2_viktor2016-03-12 18:46:30
Computer networks
m2_viktor, 2016-03-12 18:46:30

How to change the default route if the link to the gateway has fallen?

Hello, the scheme is given:
9cbf54b0517748a196cdbbea6abafed2.png
If a link falls between R1 and ISP1, then I want R1 to change the gateway to the 0.0.0.0/0 grid from ISP1 to R2. How to do it on routeros or cisco ios?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Diman89, 2016-03-12
@Diman89

wiki.mikrotik.com/wiki/Load_Balancing

A
Alex Suvoroff, 2016-03-14
@Axel_L

For Cisco IOS there is an interesting thing called Embedded_Event_Manager . As far as I know, this thing works in conjunction with ip sla and applies one or another set of rules on an event.
Approximately, the following should turn out in the conf:
Describe and enable ip sla:

track 1 ip sla 1 reachability
 delay down 5 up 5

ip sla responder
ip sla 1
 icmp-echo <IP-dest-ISP1> source-ip <IP-Source-R1>
 frequency 5
ip sla schedule 1 life forever start-time now

Then we describe the events:
event manager applet ISP1_DOWN
 event track 1 state down
 action 2.0 cli command "enable"
 action 2.1 cli command "configure term"
 action 2.2 cli command "ip route 0.0.0.0 0.0.0.0 <IP-R2 or Interface-to-R2>"
event manager applet ISP1_UP
 event track 1 state up
 action 2.0 cli command "enable"
 action 2.1 cli command "configure term"
 action 2.2 cli command "no ip route 0.0.0.0 0.0.0.0 <IP-R2 or Interface-to-R2>"

I could be wrong, but in general it looks something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question