OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: kss on June 07, 2022, 09:51:37 PM

Title: DHCPv4 behavior
Post by: kss on June 07, 2022, 09:51:37 PM
I am running 22.1.8_1 presently and noticed the following:

LAN IP: 192.168.1.0/24

Old DHCP lease pool: 192.168.1.10 to 192.168.1.30
There were about 15 machines with a valid lease on this network as shown by the Services->DHCPv4->Leases menu

I moved the pool from the above to 192.168.1.60 to 192.168.1.80

Now the Services->DHCPv4->Leases list is empty, although all the issued leases are still valid and functional. I restarted the DHCP service, but the machines have not yet got their new IP assignments and do not show up.

Is this the expected behavior? Shouldn't the existing (valid) leases still be displayed even though they are no longer in the pool?
Title: Re: DHCPv4 behavior
Post by: cookiemonster on June 07, 2022, 10:42:18 PM
The leases are requested, not pushed to clients. I therefore expect them to appear only when the clients have requested a new one and issued from the new pool. I haven't tested it though.
Meanwhile the old ones would have been cleared from OPN with the pool change & restart.
Could you try forcing a client to request a new ip to verify?
Title: Re: DHCPv4 behavior
Post by: axsdenied on June 07, 2022, 10:59:53 PM
Quote from: cookiemonster on June 07, 2022, 10:42:18 PM
The leases are requested, not pushed to clients. I therefore expect them to appear only when the clients have requested a new one and issued from the new pool. I haven't tested it though.
Meanwhile the old ones would have been cleared from OPN with the pool change & restart.
Could you try forcing a client to request a new ip to verify?

This!
Title: Re: DHCPv4 behavior
Post by: kss on June 08, 2022, 05:54:09 AM
I did, and it works as you said. Thanks.