09-25-2012 11:29 AM - edited 03-04-2019 05:40 PM
I've got two Nexus 7010's running HSRP north bound to a pair of ASA's, and BGP south bound to four 6509's.
Is it possible to advertise default route to BGP neighbor (or prefer it via MED), only if the node is HSRP-active?
Essentially the goal is to create symmetry for inbound/outbound traffic.
Only way I can think of so far is via an EEM script, so that when it sees HSRP go active via syslog, it would kick off an action to remove ASN prepend, or reduce MED, and the opposite if HSRP goes standby.
Was wondering if anyone has done something similar w/ a better way.
thx
09-26-2012 11:56 AM
I'm not sure but this might work:
When you lose Active HSRP state you will lose the route for Virtual address from the table. You can use conditional BGP advertisement based on presence/abseence of this route.
This method might not work if the HSRP route is not in BGP table.
HTH.
09-26-2012 12:45 PM
Sounds like EEM is your best bet unless your HSRP interfaces are also participating in BGP.
Ven
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide