Networking-Forums.com

Professional Discussions => Routing and Switching => Topic started by: icecream-guy on January 12, 2016, 02:43:23 PM

Title: removing a redistributed /32 from advertisement
Post by: icecream-guy on January 12, 2016, 02:43:23 PM
What is the best way ?


have a static route to a vip,
it's a host route /32
which is redistributed into ospf via a 'redistribute static' controlled by an ACL.


The goal is that there is an underlying /31 route coming from another site
(gets flushed in routing table due to the longest match rule).
Which needs to get advertised (redistributed?) into the network and take over to advertise the route to the new site where the VIP would be.

Idea plan would be to monitor the vip , say via ICMP,  when it goes unavailable, do something to remove the host route from the routing table, let the /31 from the other site slide into the routing table and get advertised to the rest of the network. 

i.e. like "no" out the static route, would be fine, but when the VIP come available again, I'd need the routing table to advertise the /32 route again. 

This all would happen automagically.


2 more cents, if I did it via ICMP, how would I know I'm pinging the right VIP at same ip?
Title: Re: removing a redistributed /32 from advertisement
Post by: wintermute000 on January 12, 2016, 03:57:04 PM
Put tracking on the /32
Title: Re: removing a redistributed /32 from advertisement
Post by: that1guy15 on January 12, 2016, 05:24:50 PM
With BGP you can do a conditional route-map to redistribute this as you are suggesting. But OSPF you can only do a conditional default AFAIK.

But you can setup a track object on the static so when the ping fails then the static is placed in the RIB and redistributed into OSPF.
Title: Re: removing a redistributed /32 from advertisement
Post by: icecream-guy on January 13, 2016, 11:22:00 AM
sorry, should have been more clear.



this is a load balancer vip, not HSRP, VRRP, GLBP, vDC etc.

Title: Re: removing a redistributed /32 from advertisement
Post by: Ctrl Z on November 30, 2016, 12:55:35 AM
Late reply  :mrgreen:

I did something like this once but it was pretty platform dependent. Using an F5 VIP you can enable route advertisement for the VIP /32, but only when all virtual servers using that VIP are available. Then use OSPF on the F5 to advertise the VIP into the network.

VIP goes down, F5 withdraws the route from OSPF. VIP comes alive, F5 advertises the /32 through OSPF.

If this wasn't for an F5 then forget everything I said.