cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19073
Views
6
Helpful
5
Replies

Tracking with ip sla and shut an interface.

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 .

.

topologie.png

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

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

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

Hi Ramdane,

The config looks ok.

Regards

Dan

thanks many DAN

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.

Review Cisco Networking products for a $25 gift card