cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1107
Views
0
Helpful
2
Replies

advertise default route based on HSRP state

huangedmc
Level 3
Level 3

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

2 Replies 2

rais
Level 7
Level 7

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.

Ven Taylor
Level 4
Level 4

Sounds like EEM is your best bet unless your HSRP interfaces are also participating in BGP.

Ven

Ven Taylor
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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco