03-02-2012 03:56 AM - edited 03-04-2019 03:31 PM
hello experts
i need your help regarding below
i have 2 routers , one localy at our H.Q , and the other in remote side .
the 2 routers connected through WAN with each other . what i need is to make some configuration at the remote router to shut down another interface automatically when the WAN problem goes down and the localy and the remote router couldnt reach each other ...
your cooperation appreciated
Reyad
03-02-2012 04:26 AM
hello Reyad,
i am not an expert.. but one idea could be to use the ip verify availability with ip sla tracks and with the appropriate set commands in the route-map change the AD of the interface. i am not sure if this is helpful at all, i haven't tested but i am setting up a gns lab shortly for this..
03-02-2012 04:27 AM
You may need to use eem and tracking for this. Try this:
track 1 interface FastEthernet0/1 line-protocol
event manager applet Track-Down
event syslog pattern "1 interface FastEthernet0/1 line-protocol Up->Down"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "int fa0/0"
action 4.0 cli command "shut"
With the above, if my fa0/1 goes down, I shut down my int fa0/0. You're going to need to create another one to bring the interface back up when your tracked object comes back up.
event manager applet Track-Up
event syslog pattern "1 interface Fa0/1 line-protocol Down->Up"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "int fa0/0"
action 4.0 cli command "no shut"
03-02-2012 04:51 AM
thank you Anastasios
thank you Blakley , i think your idea perfect for me , but if you can help me to make a tracking for the next hop ip address reachability instead of the interface status .
becouse some times the interface status shows up at both sides but no traffic pass through the link according to ISP problem . so that i prefer to have IP address reachability tracking if possible .
regards
Reyad
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