Closed socs closed 1 month ago
Reproduced. We can also see what the root cause is. Working on a fix ...
Root cause is the metric which avahi-autoipd and udhcpc write their routes with to the kernel. The value is too low compared to the values calculated by Frr. Frr calculate the kernel metric using protocol distance + protol metric, where the distance is the high order byte in an unsigned 32-bit kernel metric.
3-part fix required, first part in progress (fix avahi-autoipd.action
script and udhcpc.script
). Second and third parts require a bit more work and will be handled separately, probably targeting the 24.10 milestone.
Sorry for the delay.
Pull request #639 addresses this issue by a complete overhaul of how routes are managed in Infix. This was initially planned for v24.10, but the constraints on the "quick fix" would've been too difficult to explain, so the correct fix™ was pulled forward.
staticd
daemon./etc/frr/static.d/*.conf
which can be inspected freely at runtime from the shellclient-if
using the route-preference
settingroute-preference
settingFinally, the CLI show routes
command has been greatly improved with a show ip route
Cisco style look, see the documentation for details, here's an example:
admin@R1:~$ show ip route
PREFIX PREF NEXT-HOP PROTOCOL UPTIME
10.0.0.1/32 110/2000 0.0.0.0 ospfv2 0h0m37s
>* 10.0.0.1/32 0/0 e5 direct 0h0m37s
>* 10.0.0.2/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 10.0.0.3/32 110/2000 10.0.13.2 ospfv2 0h0m21s
>* 10.0.0.4/32 110/2001 10.0.12.2 ospfv2 0h0m16s
10.0.12.0/30 110/1 e6 ospfv2 0h0m37s
>* 10.0.12.0/30 0/0 e6 direct 0h0m37s
10.0.13.0/30 110/2000 e5 ospfv2 0h0m37s
>* 10.0.13.0/30 0/0 e5 direct 0h0m37s
>* 10.0.23.0/30 110/2001 10.0.13.2 ospfv2 0h0m21s
>* 10.0.24.0/30 110/2001 10.0.12.2 ospfv2 0h0m16s
>* 10.0.41.0/30 110/2002 10.0.12.2 ospfv2 0h0m16s
>* 11.0.8.0/24 0/0 lo direct 0h0m37s
>* 11.0.8.1/32 110/0 lo ospfv2 0h0m37s
>* 11.0.9.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 11.0.10.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 11.0.11.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 11.0.12.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 11.0.13.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 11.0.14.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 11.0.15.1/32 110/1 10.0.12.2 ospfv2 0h0m22s
>* 192.168.3.0/24 110/2001 10.0.13.2 ospfv2 0h0m21s
>* 192.168.4.0/24 110/20 10.0.12.2 ospfv2 0h0m15s
Sorry for the delay.
You're quite modest, pretty sure you broke some record on this one. Outstanding work
Current Behavior
Add a default route with some metric via shell, eg using ip route. Now running cli and listing routes will trigger internal error and trying to configure a default route will silently fail.
Expected Behavior
Should be able to set default route. Should be able to list routes.
Steps To Reproduce
infix @ f77f585 installed.
Additional information
No response