OPNsense Forum

English Forums => General Discussion => Topic started by: somanet on June 11, 2026, 06:33:09 PM

Title: How Can i modify the lease time ? to 30mins
Post by: somanet on June 11, 2026, 06:33:09 PM
   IPv4 Address. . . . . . . . . . . : 192.168.1.155(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.252.0
   Lease Obtained. . . . . . . . . . : 11 June 2026 15:48:31
   Lease Expires . . . . . . . . . . : 11 June 2026 21:03:21
   Default Gateway . . . . . . . . . : fe80::f690:eaff:fe01:fb24%7
                                       192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
Title: Re: How Can i modify the lease time ? to 30mins
Post by: sopex on June 11, 2026, 09:49:46 PM
XXXX/ui/dnsmasq/settings#dhcpranges

Edit or create a new range, its one of the settings here
Title: Re: How Can i modify the lease time ? to 30mins
Post by: somanet on June 12, 2026, 08:22:35 AM
Gave is a range of 100 seconds and its not applying its using previous dhcp range mot the new one we have set


Title: Re: How Can i modify the lease time ? to 30mins
Post by: somanet on June 12, 2026, 09:55:39 AM
Quote from: sopex on June 11, 2026, 09:49:46 PMXXXX/ui/dnsmasq/settings#dhcpranges

Edit or create a new range, its one of the settings here

Have set the range and lease time but its not picking the new leases its still using old configurations
Title: Re: How Can i modify the lease time ? to 30mins
Post by: sopex on June 12, 2026, 10:07:52 AM
Quote from: somanet on June 12, 2026, 09:55:39 AMHave set the range and lease time but its not picking the new leases its still using old configurations

You need to tell the local clients to renew their lease manually.

For Windows:
ipconfig /release
ipconfig /renew

But you need to do some research and use AI. Its great for these kinds of things.
Title: Re: How Can i modify the lease time ? to 30mins
Post by: somanet on June 12, 2026, 10:57:34 AM
Quote from: sopex on June 12, 2026, 10:07:52 AM
Quote from: somanet on June 12, 2026, 09:55:39 AMHave set the range and lease time but its not picking the new leases its still using old configurations

You need to tell the local clients to renew their lease manually.

For Windows:
ipconfig /release
ipconfig /renew

But you need to do some research and use AI. Its great for these kinds of things.
My Current Range
192.168.2.101 -  192.168.2.200

what am getting
eferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.171(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.252.0
   Lease Obtained. . . . . . . . . . : 12 June 2026 11:48:37
   Lease Expires . . . . . . . . . . : 12 June 2026 13:48:36
   Default Gateway . . . . . . . . . : fe80::f690:eaff:fe01:fb24%17
                                       192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
Title: Re: How Can i modify the lease time ? to 30mins
Post by: cookiemonster on June 13, 2026, 12:21:13 AM
Quote from: somanet on June 12, 2026, 10:57:34 AM
Quote from: sopex on June 12, 2026, 10:07:52 AM
Quote from: somanet on June 12, 2026, 09:55:39 AMHave set the range and lease time but its not picking the new leases its still using old configurations

You need to tell the local clients to renew their lease manually.

For Windows:
ipconfig /release
ipconfig /renew

But you need to do some research and use AI. Its great for these kinds of things.
My Current Range
192.168.2.101 -  192.168.2.200

what am getting
eferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.171(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.252.0
   Lease Obtained. . . . . . . . . . : 12 June 2026 11:48:37
   Lease Expires . . . . . . . . . . : 12 June 2026 13:48:36
   Default Gateway . . . . . . . . . : fe80::f690:eaff:fe01:fb24%17
                                       192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
Is that a typo in the dhcp server address, which is different to the address assigned to the client?

Instead of making us guess, can you please tell the setup, what is the OPN version, which dhcp service are you using on it, what are the devices involved in the setup? Perhaps a router behind another router. Maybe more than one dhcp server running on the network.