cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
475
Views
0
Helpful
1
Replies

Active/Active, multi homed BGP, dual router , HSRP config

jagdev.dhaliwal
Level 1
Level 1

Hello All,

I have

Active/Active, multi homed BGP, dual router , HSRP config on LAN,  Now I want to  change the HSRP priority to avoid one extra hop in case one ISP fails, I want to use the EEM feature instead of IP SLA  which I am currently using But It’s the first time I am trying to use this,

Can you guys help me to find whether my EEM config is good enough to achieve what I am trying to achieve or I need to make some changes to this config

ISP1

event manager applet track-bgp-down

event syslog pattern "%BGP-5-ADJCHANGE: neighbor 10.10.10.17 Down BGP Notification sent"

action 1.0 syslog priority critical msg "EBGP Session to peer is down"

action 2.0 cli command "enable"

action 3.0 cli command "conifg t"

action 4.0 cli command "FastEthernet0/1.90"

action 5.0 cli command " standby 12 priority 85 "

action 6.0 cli command "end"

event manager applet track-bgp-up

event syslog pattern "%BGP-5-ADJCHANGE: neighbor 10.10.10.17 Up"

action 1.0 syslog priority critical msg "EBGP Session to peer is up"

action 2.0 cli command "enable"

action 3.0 cli command "conifg t"

action 4.0 cli command "FastEthernet0/1.90"

action 5.0 cli command " standby 12 priority 110 "

action 6.0 cli command "end"

ISP2

event manager applet track-bgp-down

event syslog pattern "%BGP-5-ADJCHANGE: neighbor 20.20.20.41 Down BGP Notification sent"

action 1.0 syslog priority critical msg "EBGP Session to peer is down"

action 2.0 cli command "enable"

action 3.0 cli command "conifg t"

action 4.0 cli command "FastEthernet0/1.90"

action 5.0 cli command " standby 11 priority 85 "

action 6.0 cli command "end"

event manager applet track-bgp-up

event syslog pattern "%BGP-5-ADJCHANGE: neighbor 20.20.20.41 Up"

action 1.0 syslog priority critical msg "EBGP Session to peer is up"

action 2.0 cli command "enable"

action 3.0 cli command "conifg t"

action 4.0 cli command "interface FastEthernet0/1.90"

action 5.0 cli command " standby 11 priority 110 "

action 6.0 cli command "end"

Thanks

Jagdev

1 Accepted Solution

Accepted Solutions

Gregory Snipes
Level 4
Level 4

You would probably get a better response to this one in the EEM scripting forum.

View solution in original post

1 Reply 1

Gregory Snipes
Level 4
Level 4

You would probably get a better response to this one in the EEM scripting forum.

Review Cisco Networking products for a $25 gift card