Kernel and Static routes missing from 'show ip route' in FRR 9.* up to FRR 10.1.1 on FreeBSD #17113
Open
2 tasks done
Labels
triage
Needs further investigation
Description
Kernel's default gateway and static routes are missing from 'show ip route' in FRR 9.* up to FRR 10.1.1 on FreeBSD 14.
This lead to unexpected behavior such as preventing the establishment of BGP over multi-hop sessions.
To make it short:
Version
How to reproduce
Deploy FreeBSD 14 then perform the following actions:
#frr8-8.5.6_1 (Before the problem appears)
pkg update
pkg search frr
pkg install frr8-8.5.6_1
vi /etc/rc.conf
mkdir /usr/local/etc/frr/
cat /usr/local/etc/frr/vtysh.conf
touch /usr/local/etc/frr/zebra.conf /usr/local/etc/frr/bgpd.conf
service frr onestart
vtysh -c "show ip route"
frr10-10.1.1_1 (Latest affected version of FRR)
service frr onestop
pkg remove frr8-8.5.6_1
pkg install frr10-10.1.1_1
service frr onestart
vtysh -c "show ip route"
route add 10.42.42.0/24 172.16.0.1
vtysh -c "show ip route"
Expected behavior
Default gateway and static kernel routes present in the kernel routing's table should be imported by zebra and appear in the result of 'show ip route'.
Actual behavior
Default gateway and static kernel routes present in the kernel routing's table before FRR is started are ignored and do not appear in the result of 'show ip route'.
Additional context
#9185 also impact FreeBSD (version 12), but state that this only affect route without gateway (ie: only pointing to an interface)
Checklist
The text was updated successfully, but these errors were encountered: