FRR BGP keeps advertising 0.0.0.0/0 route, even when gateway is down

Started by tkkaisla, March 04, 2025, 01:36:31 PM

Previous topic - Next topic


Here's a simplified version of my network. My problem is that OPNsense keeps advertising the 0.0.0.0/0 kernel route even when the gateway health check marks the gateway as offline. In the BGP peering settings, "advertise default route" is unchecked. I redistribute the 0.0.0.0/0 kernel route to BGP, and I believe the main issue is that OPNsense retains that kernel route even when the gateway is down or offline. This causes the second router to continue routing internet traffic to OPNsense, even when the fiber connection is down.

How I could set OPNsense to advertise 0.0.0.0/0 route only when the gateway is up?

That route I assume is static.
BGP will advertise routes as long they are in the routing table.

When your GW goes down, does that route remains in the routing table?
What do you mean by kernel route?

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD