dhcpcd5: Default route is not added to the routing table if the DHCP server also supplies classless static routes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
Platform: Raspberry Pi 1 Model B+ running Raspbian 11 (bullseye)
Configure DHCP server to supply the following to IPv4 clients:
* Default route (RFC 2132 option 3)
* Classless static routes (RFC 3442 option 121)
On boot, running `ip route` shows that only the classless static routes are added. The default route is not added. Furthermore, the machine was running before the classless static routes were added to the DHCP server and the default route was observed to have disappeared at some point after the DHCP server settings were modified, most likely during a lease renewal. As a temporary solution, I have added the default route manually and am observing if that will also disappear at some point in the future.
Running `dhcpcd --dumplease eth0` shows that dhcpcd did receive the `routers` and `classless_
No similar bug reports have been found for dhcpcd5 on Debian, although there is an RFC 3442 related bug report regarding client misconfiguration in the event of the disappearance of the DHCP server (https:/
I currently don't have the infrastructure to test if it is a problem on Debian as well.
For clarification, I just noticed that I neglected to mention that the Debian bug report I linked is for isc-dhcp-client and not for dhcpcd5 so it's farfetched that it's related. Dhcpcd5 itself on Debian has zero bug reports.