03-13-2012 01:50 AM - edited 03-04-2019 03:38 PM
hi all
this is my topologie what i want to do is :
configure tracking in R1 to track ip address in FE 0/0 in R2 ;
then if this ip addresse is unreachable with sla iwant to put interface FE0/1 in R1 to shutdown status
i'm thinking to do events applet ??!!
can some one help me
thanks .
.
Solved! Go to Solution.
03-13-2012 02:13 AM
Hi ,
You do not need sla for this in real world, for direcly connected routers via ethernet. When R2 will shut down it's interface R1's interface will go down. But because I belive that you are using GNS3/Dynamips you will need sla
! real life
track 1 interface fa0/0 line-protocol
! gns3
ip sla monitor 1
type echo protocol ipIcmpEcho
timeout 50
frequency 5
ip sla monitor schedule 1 life forever start-time now
track 1 interface fa0/0
event manager applet FA0/0-DOWN
event track 1 state down
action 1 cli command enable
action 2 cli command "conf t"
action 3 cli command "int fa0/1"
action 4 cli command shut
action 5 cli command exit
Dan
03-13-2012 02:13 AM
Hi ,
You do not need sla for this in real world, for direcly connected routers via ethernet. When R2 will shut down it's interface R1's interface will go down. But because I belive that you are using GNS3/Dynamips you will need sla
! real life
track 1 interface fa0/0 line-protocol
! gns3
ip sla monitor 1
type echo protocol ipIcmpEcho
timeout 50
frequency 5
ip sla monitor schedule 1 life forever start-time now
track 1 interface fa0/0
event manager applet FA0/0-DOWN
event track 1 state down
action 1 cli command enable
action 2 cli command "conf t"
action 3 cli command "int fa0/1"
action 4 cli command shut
action 5 cli command exit
Dan
03-13-2012 02:42 AM
thanks dan;
your idea has guide me to the right config ;i add just an event manager to set interface to no shut if the link if the the link is resrablished.
this is my config and it's work :
ip sla 10
icmp-echo 10.0.0.2
timeout 500
frequency 3
ip sla schedule 10 life forever start-time now
track 10 rtr 10 reachability
delay down 5 up 10
event manager applet RAMDANE
event track 10 state down
action 1 cli command "enable"
action 2 cli command "conf t"
action 3 cli command "inte fa 0/1"
action 4 cli command "shut"
action 5 cli command "end"
event manager applet RAMDANEU
event track 10 state up
action 1 cli command "enable"
action 2 cli command "conf t"
action 3 cli command "inte fa 0/1"
action 4 cli command "no shut"
action 5 cli command "end"
if some have a better post it .
ramdane
regards
03-13-2012 02:47 AM
Hi Ramdane,
The config looks ok.
Regards
Dan
03-13-2012 02:55 AM
thanks many DAN
01-22-2023 09:22 PM
Hey!
Can you tell me what "event manager applet..." command does in your config? I want to do some similarly configuration for interfaces where i have MC connected...
Thank's!
Roxana.
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