cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1426
Views
0
Helpful
3
Replies
Highlighted
Beginner

Redistribute a connected interface based around IP SLA

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,

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Advisor

Redistribute a connected interface based around IP SLA

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
Advisor

Redistribute a connected interface based around IP SLA

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

Beginner

Redistribute a connected interface based around IP SLA

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

Rising star

Redistribute a connected interface based around IP SLA

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.

Hope it will help. Best regards, Abzal
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards