Hi,
I have a problem with vyos that stops distributing the static default path through OSPF when it gets another default path from OSPF even though its static path is still active and does not broadcast paths from OSPF in the configuration.
Normally it looks like this:
area 0
network 10.27.255.12/30
network 10.27.255.8/30
network 10.27.255.250/32
}
default-information {
originate {
metric-type 2
}
}
parameters {
abr-type cisco
router-id 100.100.100.100
}
redistribute {
static {
metric-type 2
}
}
vyos @ BGP-A: ~ $ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
S> * 0.0.0.0/0 [1/0] via 10.27.255.25, eth2.12, 05w5d02h
O> * 10.27.0.0/24 [110/10] via 10.27.255.10, eth2.20, 05w5d03h
- via 10.27.255.14, eth4.21, 05w5d03h
O> * 10.27.254.0/29 [110/10] via 10.27.255.10, eth2.20, 05w5d03h - via 10.27.255.14, eth4.21, 05w5d03h
…
As you can see, the router has a default static path that it broadcasts to network switches, but when the switches want to broadcast their static path to vyos, and they also have a static default backup path through another device that they broadcast to Vyos, it stops broadcasting its static path to them.
On Vyos it looks like this:
vyos @ BGP-A: ~ $ show ip route
WARNING: terminal is not fully functional
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
O 0.0.0.0/0 [110/10] via 10.27.255.10, eth2.20, 00:00:01
S> * 0.0.0.0/0 [1/0] via 10.27.255.25, eth2.12, 05w5d02h
The switches don’t get the default route from Vyos in this case.
Can anyone suggest how to filter the 0.0.0.0/0 route received by Vyos by OSPF?