cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1892
Views
0
Helpful
3
Replies

Redistribute a connected interface based around IP SLA

grichardson661
Level 1
Level 1

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,

1 Accepted Solution

Accepted Solutions

John Blakley
VIP Alumni
VIP Alumni

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 ***

HTH, John *** Please rate all useful posts ***

View solution in original post

3 Replies 3

John Blakley
VIP Alumni
VIP Alumni

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 ***

HTH, John *** Please rate all useful posts ***

Cheers guys much appreciated! I've read about EEM but never really implemented it. Thanks for the swift response.

Abzal
Level 7
Level 7

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.

Best regards,
Abzal
Getting Started

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:

Review Cisco Networking products for a $25 gift card