Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Modify DHCP lease time on WAN Interface?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Modify DHCP lease time on WAN Interface? (Read 11783 times)
agriff
Newbie
Posts: 5
Karma: 2
Modify DHCP lease time on WAN Interface?
«
on:
December 03, 2020, 11:52:56 am »
Hi,
My ISP's DHCP server has very long leases (~70 hours). However, if the cable modem is power-cycled or otherwise goes through a reset I need to re-request in order to get connectivity back. And it seems that OPNSense won't do this until the lease is running down. So I'm forced to manually intervene and bounce the WAN interface.
Is there someway to override the lease time so I can get opnsense to renew more frequently? Or alternatively trigger a renewal when the gateway goes unreachable?
Thanks,
Alan
Logged
agriff
Newbie
Posts: 5
Karma: 2
Re: Modify DHCP lease time on WAN Interface?
«
Reply #1 on:
December 17, 2020, 02:29:28 pm »
Figured it out in the end (all answers are on Google, if you only know what to search for). For reference, in case anyone else needs to do this.
Select Interfaces -> WAN from the GUI
Select Advanced under DHCP client configuration
In the Option Modifiers box add
supersede dhcp-lease-time xxx
Where
xxx
is your desired lease time in seconds. dhclient will attept to renew when 50% of the lease time has elapsed.
Logged
joeyboon
Newbie
Posts: 41
Karma: 2
Re: Modify DHCP lease time on WAN Interface?
«
Reply #2 on:
November 22, 2021, 10:32:35 pm »
Thanks for posting the solution after you found it! This (hopefully) saved my but!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Modify DHCP lease time on WAN Interface?