08-26-2024 11:25 PM
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
Solved! Go to Solution.
08-27-2024 01:46 AM - edited 08-27-2024 01:47 AM
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
09-13-2024 02:38 AM
Hi MHM Cisco World,
Everything is working fine after configured IP SLA with EEM template.
08-26-2024 11:42 PM
Use EEM to detect IP SLA status and action down interface
MHM
08-26-2024 11:48 PM
08-27-2024 01:01 AM
You want interface to be down to remove default route?
MHM
08-27-2024 01:31 AM
My requirement is when 8.8.8.8 not reachable from R2 then interface f2/0 should be down.
08-27-2024 01:34 AM
And how yoh make it UP again?
This my concern
MHM
08-27-2024 01:36 AM
I can Manually bring up the interface.
08-27-2024 01:38 AM
Kindly ignore last reply
When 8.8.8.8 will be reachable from R2 then f2/0 auto up the interface.
08-27-2024 02:19 AM
Sorry that cannot be done
Check my below reply
MHM
08-27-2024 01:39 AM - edited 08-27-2024 01:40 AM
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”
08-27-2024 01:46 AM - edited 08-27-2024 01:47 AM
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
08-27-2024 02:13 AM
Thank you so much it is working.
08-27-2024 02:18 AM
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
08-27-2024 02:23 AM
Hello
@MHM Cisco World wrote:
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.
08-27-2024 02:28 AM
If he use different ip sla source interface then what logic of eem and IP sla???
Friends take a min think about issue
MHM
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