FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
achu
Staff
Staff
Article Id 368837
Description

This article describes how to disable 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. In FortiGate, the default lease time is seven days (604800 seconds), but it can be adjusted as needed.


Refer to the steps below to disable DHCP lease time in 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