Initial DHCP lease time is set to 600 seconds not 86400 seconds

Started by TheGrandWazoo, October 29, 2020, 04:10:14 PM

Previous topic - Next topic
In using the DHCP service on OPNsesne, when I was spinning up a Nexus v9000 I was getting a message that the lease time was under 3600 which it was not accepting.

Upon research using the packet capture diagnostics, I noticed the dhcp service was, in fact, handing out the 600 second value under option 51 - Attached snip (dhcp-offer.png) and the DHCP Discover package was asking for 538705920 seconds - Attached snip (dhcp-discover.png)

After many retries (about 180 seconds after the initial discover) the correct dhcp lease is offered to the devices.

Everything is defaulted to 7200 and 86400 and the /var/dhcpd/etc/dhcpd.conf file shows those same values as the default and in the pools.

I spun up a quick dhcp-server (version 4.3.6) under CentOS 8 and copied the above dhcpd.conf to the /etc/dhcpd directory and it served out the correct lease times to the devices.

Currently using OPNsense 20.7.4-amd64 with LibreSSL-3.1.4 and the packages shows a isc-dhcp44-server version of 4.4.2_1.