05-29-2020 06:35 AM - edited 05-29-2020 06:36 AM
Hello,
I know that there're some possibilities with default route to be conditionally advertised using ospf and route maps.
But do it's possible to somehow tell OSPF: if some address is reachable via ping (using SLA for example) then advertise and receive all routes from particular neighbor. But if some IP is not reachable via PING then stop advertising and receiving everything via that neighbor.
Did my search, haven't see anything.
Thank you
05-29-2020 06:37 AM
may help below document :
05-29-2020 07:58 AM
Hello @from88 ,
as far as I know OSPF allows for conditional advertising only for the default route and not for more specific prefixes.
You can use BGP that supports conditional advertising to achieve the desired behaviour.
You can keep OSPF to advertise loopback addresses and then configure iBGP between loopbacks like you were a service provider.
OSPF being a link state IGP protocol can only advertise or not advertise a prefix related to the status of a link.
Hope to help
Giuseppe
05-29-2020 09:31 AM
06-02-2020 06:24 AM
06-02-2020 08:12 AM - edited 06-02-2020 10:38 AM
Ah, well that would spike that. I haven't looked myself, but no EEM with latest IOS and/or a non Lite/Base feature set?
PS:
Oh, another approach, if you cannot do EEM on the switch itself, would be to logically do the same thing, but physically from another scripting host.
06-03-2020 01:29 AM
Thanks, seems one of the newest IOS version has it:) https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/15-mt/eem-15-mt-book/eem-overview.html#GUID-A33C0359-B4BE-46FE-8992-0D468A246E4A
Actually this is one of the workarounds for problem mentioned here: https://community.cisco.com/t5/data-center-switches/failure-of-data-plane-traffic-has-anybody-experienced/td-p/4096167
We experienced this type of dataplane failure of the uplink switch, so i thought maybe i will use EEM to disable OSPF on condition: when C2960x uplink port to Athe time failed NEXUS is UP, but the ping to neighboring p2p address fails.
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