Bug #15850
openDHCP not always giving gateway
0%
Description
I've noticed that if when using VLANs on the LAN interface, a DHCP server is configured with the default gateway (i.e., not specified, so will use the VLAN's IP address), there are times that DHCP leases are given with no gateway. A reboot of the router will fix this, but I believe hard-coding the IP address of the VLAN also fixes it.
I'm able to replicate this sometimes by booting the router with nothing connected to the WAN interface. This was done on various version of software, including 23.09.1-RELEASE on Netgate SG-2440, SG-3100 and 2100, but I suspect it's universal on many versions of software.
I can't imagine a scenario where this would be deemed acceptable and should be fixed.
I have attached a screenshot of an AppleTV that had this problem and another after forcing DHCP renew. I also included a screenshot of the router DHCP log for that AppleTV MAC address.
Files
Also available in: Atom