Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

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

Re: Tracking with ip sla and shut an interface.

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

4 REPLIES

Re: Tracking with ip sla and shut an interface.

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

Tracking with ip sla and shut an interface.

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

Tracking with ip sla and shut an interface.

Hi Ramdane,

The config looks ok.

Regards

Dan

Tracking with ip sla and shut an interface.

thanks many DAN

1334
Views
5
Helpful
4
Replies