01-09-2013 03:21 AM - edited 03-07-2019 10:59 AM
Hi Guys,
Has anybody managed to redistribute a connected interface based aound a track IP SLA?
For exmaple, if the IP SLA (icmp echo based) fails - then redistribute the connected interface into EIGRP?
Cheers,
Solved! Go to Solution.
01-09-2013 04:16 AM
As far as I know, you won't be able to do this natively via track or eigrp, but you can do it with an eem script. I tested it already and it works fine. Create your sla and tracking and then use the script below. It will watch the tracked object and when it goes down will configure the eigrp process for you. My Match22 route map is matching only my loopback22 interface that was on this test router.
event manager applet FailedTrack
event track 1 state down
action 1.0 cli command "enable"
action 1.5 cli command "conf t"
action 2.0 cli command "router eigrp 100"
action 2.5 cli command "redistribute connected route-map Match22"
action 3.0 cli command "end"
HTH,
John
*** Please rate all useful posts ***
01-09-2013 04:16 AM
As far as I know, you won't be able to do this natively via track or eigrp, but you can do it with an eem script. I tested it already and it works fine. Create your sla and tracking and then use the script below. It will watch the tracked object and when it goes down will configure the eigrp process for you. My Match22 route map is matching only my loopback22 interface that was on this test router.
event manager applet FailedTrack
event track 1 state down
action 1.0 cli command "enable"
action 1.5 cli command "conf t"
action 2.0 cli command "router eigrp 100"
action 2.5 cli command "redistribute connected route-map Match22"
action 3.0 cli command "end"
HTH,
John
*** Please rate all useful posts ***
01-09-2013 09:01 AM
Cheers guys much appreciated! I've read about EEM but never really implemented it. Thanks for the swift response.
01-09-2013 04:18 AM
Hi,
It's possible to achieve with Embedded Event Manager but I don't know if your device supports it.
Anyway here is simple script:
event manager applet EIGRPRedisConnect
event track 1 state down
action 1 syslog priority warnings msg "Interface is down, redistributing connected routes"
action 2 cli command "enable"
action 3 cli command "configure terminal"
action 4 cli command "router eigrp XXX"
action 5 cli command "redistribute connected"
action 6 cli command "end"
You need just change track object number and EIGRP process accordingly.
Hope it will help.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: