04-02-2016 06:33 AM - edited 03-05-2019 03:42 AM
We have a Nexus 56128 installed as a L3 edge router. We need to track reachability to a remote router. The Nexus 5600 does not currently offer the IP SLA features. Any alternatives to solve this? We need to install a backup route when primary fails.
04-03-2016 06:55 PM
N5K/N6K supports object tracking, but as of NX/OS 7.1, you still can't tie it into static routes and there's no IP SLA.
However, NX/OS 6.0(2)N2(1) did add EEM which can periodically run a python script that does what you want. Attached is RouteTrack.py. Place it in bootflash, run it manually from the CLI to test it out, and then create an EEM applet to run it every few seconds.
Usage:
RouteTrack.py <route> <route_nexthop> [route_vrf] [ping_host [ping_vrf]] [debug]
The simplest form is:
RouteTrack.py 192.168.3.0/24 10.0.0.1
This will add or remove the config command "ip route 192.168.3.0/24 10.0.0.1" based on whether or not 10.0.0.1 is pingable
The script produces syslog messages like these:
2013 Oct 16 19:22:12 N5K-2 %USER-3-SYSTEM_MSG: Removing route vrf management 1.0.0.0/8 to 172.31.51.1 (ping 10.89.169.5 failed) - RouteTrack.py
2013 Oct 16 19:22:31 N5K-2 %USER-3-SYSTEM_MSG: Adding route vrf management 1.0.0.0/8 to 172.31.51.1 (ping 10.89.169.5 success) - RouteTrack.py
04-06-2016 06:11 AM
Thanks for the reply. I do not see the attachment.
04-06-2016 08:51 PM
what attachment??
04-13-2016 05:04 AM
Attached is RouteTrack.py. Where is this attachment?
Colin
04-13-2016 08:20 AM
Plz check the following link it has this :-
https://supportforums.cisco.com/discussion/11719336/ip-sla-nexus-5500-series
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