- We have two entry points into the network that receive default routes via
bgp. - I want to redistribute default routes to the rest of the network via
ospfv3and different weights. - We have two versions of Vyos installed to gateway routers -
1.3.5andStream 2025.11. - In version
1.3.5I useset ospfv3 redistribute bgp …configuration command and assign metric of 50 to the route and it works fine. - In the version
2025.11ospfv3 behaves differently and it seems has two options availabledefault-information originate ...andredistribute bgp …. - I tried both but neither of them does what I need.
default-information originate …is configured withroute-mapthat allows only bgp routes and this works except that whenbgpis down - it still publishes the default route (alwaysoption is not set).redistribute bgp …does not do anything at all
- I could not find an easy way to troubleshoot since vyos tools are rather basic and half of them don’t work at all (try executing
monitor protocol ospfv3 enable route…for yourself…).
Here are some configuration snippets:
# show policy
prefix-list6 DEFAULT-ROUTE-IPV6 {
rule 10 {
action permit
prefix ::/0
}
}
route-map OSPFv3-ORIGINATE {
rule 10 {
action permit
match {
ipv6 {
address {
prefix-list DEFAULT-ROUTE-IPV6
}
}
protocol bgp
}
}
}
route-map OSPFv3-REDISTRIBUTE {
rule 10 {
action permit
match {
ipv6 {
address {
prefix-list DEFAULT-ROUTE-IPV6
}
}
protocol bgp
}
}
}
version with originate:
# show protocols ospfv3
default-information {
originate {
metric 10
metric-type 1
route-map OSPFv3-ORIGINATE
}
}
interface eth1 {
area 0
passive
}
interface lo {
area 0
passive
}
interface tun51 {
area 0
cost 10
}
interface tun523 {
area 0
cost 10
}
interface tun524 {
area 0
cost 50
}
version with redistribute:
# show protocols ospfv3
interface eth1 {
area 0
passive
}
interface lo {
area 0
passive
}
interface tun51 {
area 0
cost 10
}
interface tun523 {
area 0
cost 10
}
interface tun524 {
area 0
cost 50
}
redistribute {
bgp {
metric 10
metric-type 1
route-map OSPFv3-REDISTRIBUTE
}
}
here is portion of a routing table for good measure:
Codes: K - kernel route, C - connected, L - local, S - static,
R - RIPng, O - OSPFv3, I - IS-IS, B - BGP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric, t - Table-Direct,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
O ::/0 [110/60] via fe80::f50f:75ff:fef4:dcda, tun51, weight 1, 00:05:25
B>* ::/0 [20/0] via fe80::5287:89ff:fe1b:4435, br0, weight 1, 00:50:55
S ::/0 [250/0] via xxxx:xxxx:3:3::1, br0, weight 1, 02:54:11
...
and just in case - ospfv3 area info:
# run show ipv6 ospfv3 area | strip-private
+-xxx.xxx.128.17 [0]
+-xxx.xxx.128.1 [10]
+-xxx.xxx.128.133 [10]
+-xxx.xxx.128.129 Net-ID: xxx.xxx.0.2 [11]
+-xxx.xxx.128.129 [11]
+-xxx.xxx.128.134 [11]
Any guidance?
Update
I’ve just discovered that even though I provided route-map with default information originate … option and it clearly specifies bgp as protocol - it actually picks up a static route instead. I discovered it by disabling the static route and the route disappeared from the list of OSPFv3 routes instantly. It appears that default-information originate … ignores the route map.