cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1512
Views
6
Helpful
35
Replies

IP SLA

Salman-Abbasi
Level 1
Level 1

Hi Team , 

I have one requirement that whenever PC1 and 8.8.8.8 reachability goes down due to any reason and consider 8.8.8.8 is CLOUD IP then R2 interface f2/0 should also be down like state or protocol of interface can we achieve this through IPSLA or any other way.

Regards

Salman

2 Accepted Solutions

Accepted Solutions

Hello
You dont mention what IOS your are using and on what platform, however its possibile a simple EEM can be applied

Simple EEM

ip sla 10
icmp-echo 8.8.8.8 source-ip x.x.x.x
timeout 200
frequency 5
ip sla schedule 10 life forever start-time now

track 1 rtr 10 reachability

event manager applet FA02-DOWN
event track 1 state down
action 5.0 cli command "enable"
action 5.1 cli command "conf t"
action 5.2 cli command "interface fa0/2"
action 5.3 cli command "shut"
action 5.4 cli command "end"

event manager applet FA0/2-UP
event track 1 state up
action 5.5 cli command "enable"
action 5.6 cli command "conf t"
action 5.7 cli command "interface fa0/2"
action 5.8 cli command "no shut"
action 5.9 cli command "end


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

Hi MHM Cisco World,

Everything is working fine after configured IP SLA with EEM template.

 

View solution in original post

35 Replies 35

Use EEM to detect IP SLA status and action down interface 

MHM

Hi MHM Cisco World

Could you please share the EEM configuration.

 

You want interface to be down to remove default route?

MHM

My requirement is when 8.8.8.8 not reachable from R2 then interface f2/0 should be down.

And how yoh make it UP again?

This my concern 

MHM

I can Manually bring up the interface.

 

Kindly ignore last reply 

When 8.8.8.8 will be reachable from R2 then f2/0 auto up the interface.

Sorry that cannot be done 

Check my below reply 

MHM

Example 

ip sla 1
icmp-echo 8.8.8.8 source-interface x/x
ip sla schedule 1 life forever start-time now

track 1 ip sla 1 reachability

event manager applet IPSLA
event track 1 state down

action 1.0 cli “enable”
action 2.0 cli “conf t”
action 3.0 cli “int x/x”
action 4.0 cli “shut”
action 5.0 cli “end”

Hello
You dont mention what IOS your are using and on what platform, however its possibile a simple EEM can be applied

Simple EEM

ip sla 10
icmp-echo 8.8.8.8 source-ip x.x.x.x
timeout 200
frequency 5
ip sla schedule 10 life forever start-time now

track 1 rtr 10 reachability

event manager applet FA02-DOWN
event track 1 state down
action 5.0 cli command "enable"
action 5.1 cli command "conf t"
action 5.2 cli command "interface fa0/2"
action 5.3 cli command "shut"
action 5.4 cli command "end"

event manager applet FA0/2-UP
event track 1 state up
action 5.5 cli command "enable"
action 5.6 cli command "conf t"
action 5.7 cli command "interface fa0/2"
action 5.8 cli command "no shut"
action 5.9 cli command "end


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Thank you so much it is working.

 

@paul driver @Salman-Abbasi 

It never work 

Because ip sla use IP to be UP and you admin down it. 

I know what I am talking about

If IP Sla is up and the port is admin down then IP sla use different path and that so so wrong 

It easy logic 

MHM

Hello


@MHM Cisco World wrote:

@paul driver @Salman-Abbasi 

It never work 

I know what I am talking about


The source interface of the ipsla isnt the interface the OP wants to shut down when tracking fails so yes the above cfg WILL work.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

If he use different ip sla source interface then what logic of eem and IP sla???

Friends take a min think about issue

MHM

Review Cisco Networking for a $25 gift card