OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: agriff on December 03, 2020, 11:52:56 am

Title: Modify DHCP lease time on WAN Interface?
Post by: agriff 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
Title: Re: Modify DHCP lease time on WAN Interface?
Post by: agriff 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.

Title: Re: Modify DHCP lease time on WAN Interface?
Post by: joeyboon on November 22, 2021, 10:32:35 pm
Thanks for posting the solution after you found it! This (hopefully) saved my but! :)