Option 121 Classless Static Routes
Walrath, Paul
Wed Apr 04 22:49:06 2018
Hi Roy,
In the 7.0.0-rc2 release notes you list "dhcp: fixed classless static routes". Do you remember what was fixed? I am using version 6.9.1G. In this version, not all of the routes in Option 121 seem to end up in the routing table.
As a test, I had my DHCPv4 server send Option 121 as follows (Wireshark trace):
Option: (121) Classless Static Route
Length: 36
192.168.10.0/24-192.168.10.1
192.168.10.1/32-0.0.0.0
192.168.20.0/24-192.168.20.1
192.168.20.1/32-0.0.0.0
default-192.168.2.2
default-192.168.2.3
default-192.168.2.4
default-192.168.2.5
The extra default gateways are there just to see what dhcpcd would do with them.
The dhcpcd client added the following routes to the routing table:
Destination/Gateway/Genmask
0.0.0.0/192.168.2.2/0.0.0.0
192.168.2.2/0.0.0.0/255.255.255.255
192.168.10.1/0.0.0.0/255.255.255.255
192.168.20.1/0.0.0.0/255.255.255.255
Shouldn't the following routes also have been added?
192.168.10.0/255.255.255.0/192.168.10.1
192.168.20.0/255.255.255.0/192.168.20.1
Is this what was fixed in 7.0.0-rc2?
Paul
Archive administrator: postmaster@marples.name