07-03-2019 11:00 AM - edited 07-03-2019 11:02 AM
Hello Ciscos !!
I have a Routing question that I need to answer it quickly
if I have this topology how can making router 0 switching between two links every 10 minutes,, the direct link is administratively down and another link is up for 10 minutes .. then the other link is up and direct link become administratively down for 10 minutes
The routing protocol used EIGRP
07-04-2019 12:44 AM
Hi there,
create a full mesh EIGRP topology bertween the three routers.
Assuming on router0 fa0 is connected to router1 and fa1 is connected router2 ...
On router0 create an EEM script which runs every 10 minutes. It will check the status of fa0, if it is up then it will shut it down. If fa0 is down, then it will no shut it.
You could add a small sanity check to ensure that fa1 is up before shutting fa0 down....you could then go a step further and ensure that routes on router2 are being received via fa1 before shutting down fa0.
cheers,
Seb.
07-04-2019 01:54 AM
07-06-2019 05:44 AM
07-06-2019 07:33 AM
Hello,
on a side note, and following Sep's suggestion to use an EEM script, below is what the script would look like (you need two scripts actually). The first script would run at 10, 30, and 50 minutes, the second at 20, 40, and 60 (0) minutes:
interface FastEthernet0/0
description Direct Link to Router2
!
interface FastEthernet0/1
description Backup Link to Router2
!
event manager applet SHUT_INT_FA0
event timer cron cron-entry "*/10,30,50 * * * *" maxrun 999999
action 1.0 cli command "enable"
action 2.0 cli command "int FastEthernet0/0"
action 3.0 cli command "shut"
action 4.0 cli command "exit"
action 5.0 cli command "int FastEthernet0/1"
action 6.0 cli command "no shut"
action 7.0 cli command "exit"
action 8.0 cli command "end"
!
event manager applet SHUT_INT_FA1
event timer cron cron-entry "*/0,20,40 * * * *" maxrun 999999
action 1.0 cli command "enable"
action 2.0 cli command "int FastEthernet0/0"
action 3.0 cli command "no shut"
action 4.0 cli command "exit"
action 5.0 cli command "int FastEthernet0/1"
action 6.0 cli command "shut"
action 7.0 cli command "exit"
action 8.0 cli command "end"
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