Event Manager : This ensures when LAN interface is down, HSRP will fail-over to
secondary router, this script will force ATM0 interface down in order to have the
BGP VRF routes removed from routing table on the PE routers and will fail-over to
the secondary router which has a route map tag 2 configured on PE router with route’s
to AV-PAIR public ip address.
!
event manager applet LANDown
event track 20 state down
action 1.0 syslog msg “Vlan 1 interface is down; shutting down ATM0”
action 2.0 cli command “enable“
action 3.0 cli command “config t“
action 4.0 cli command “interface atm0“
action 5.0 cli command “shut“
action 6.0 cli command “end“
!
!
event manager applet LANUp
event track 20 state up
action 1.0 syslog msg “Vlan 1 interface is up; bring up ATM0”
action 2.0 cli command “enable“
action 3.0 cli command “config t“
action 4.0 cli command “interface atm0“
action 5.0 cli command “no shut“
action 6.0 cli command “end“
Comments
(There are currently no comments for this post.)