Skip to main content
achu
Staff
Staff
January 9, 2025

Technical Tip: How to disable DHCP lease time on FortiGate

  • January 9, 2025
  • 0 replies
  • 1851 views
Description

This article describes how to disable the DHCP lease time in FortiGate CLI. Disabling lease time will result in clients having an unlimited lease duration.

Scope

FortiOS.

Solution

DHCP lease time is the duration for which a DHCP server assigns an IP address to a client. Once the lease time expires, the IP address is released and can be reassigned to another client. The lease time is measured in seconds and can be configured on the DHCP server. The DHCP lease time can be adjusted based on network requirements.

 

By default, FortiGate sets the lease time to 7 days (604,800 seconds), with a maximum of 10 days (864,000 seconds). In environments where clients connect and disconnect frequently, such as guest or wireless networks, shorter lease times are recommended to allow IP addresses to be reused more efficiently.


Refer to the steps below to disable the DHCP lease time in the CLI. Setting the value to 0 will disable the lease time.

 

config system dhcp server

    edit 1

        set lease-time 0

end

 

Verify the lease time is disabled in the GUI:

 

Image-1.png

 

Related article:
Technical Tip: How to configure FortiGate as DHCP server

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!