Your Search Bar For Shrewd Tips

How Do I Clear Dhcp Lease In Fortigate?


If a device has received the wrong IP address, is holding on to an expired network assignment, or needs to obtain a fresh address, clearing its DHCP lease on a FortiGate can help. The process is usually straightforward, but the right method depends on your FortiOS version and whether you want to clear one device’s lease or all leases on an interface. This guide explains how to find FortiGate DHCP leases, remove them through the GUI or CLI, and prompt a client to request an address again.

What a DHCP lease is—and what clearing it does

When a FortiGate acts as a DHCP server, it temporarily assigns an IP address to a client such as a laptop, phone, printer, or access point. The assignment is called a lease. The FortiGate tracks details such as the assigned address, client MAC address, lease duration, and sometimes the device hostname.

Clearing a lease removes the server’s current record for that assignment. It does not necessarily make the client immediately stop using the address. The device may continue using its current configuration until it renews its lease, disconnects from the network, or is told to release and request an address again. For a clean reassignment, you may need to clear the lease on the FortiGate and then renew DHCP on the client.

Also distinguish a lease from a DHCP reservation. A reservation is a configured rule that gives a particular client a predictable address. Clearing an active lease does not normally remove the reservation itself. If the reserved address is the problem, review the DHCP server configuration as well.

Before you clear a FortiGate DHCP lease

First identify the interface that provides DHCP to the affected device. This might be a physical interface, a VLAN interface, a software switch, or another internal network interface. Clearing leases on the wrong interface will not resolve the client’s issue and could affect unrelated devices.

Make sure you have administrator access and, if possible, record the client’s current IP address and MAC address before changing anything. If you manage a busy network, consider doing the work during a suitable maintenance window. A command that clears leases for an interface can cause multiple clients to need new DHCP assignments.

  • Confirm the affected device’s MAC address and current IP address.
  • Identify the FortiGate interface and DHCP server serving that device.
  • Check whether the address is dynamic or tied to a reservation.
  • Use a targeted GUI action when available; avoid clearing an entire interface unnecessarily.

Find the DHCP lease on the FortiGate

In the FortiGate GUI, look for DHCP Monitor. Depending on the FortiOS release and layout, it may appear on a dashboard or under a network monitoring menu. The monitor typically displays active leases, including the assigned IP address and client information. If the menu is not visible, use the GUI’s search function or consult the menu layout for your FortiOS version.

You can also inspect leases from the CLI. Connect to the FortiGate using SSH or open the CLI console in the GUI, then try:

execute dhcp lease-list

On some FortiOS versions, lease information may instead be available with a diagnostic command:

diagnose ip dhcp lease-list

CLI commands and output can differ between FortiOS versions. If a command is rejected, enter the relevant command prefix followed by ? to see the options supported by that device. To check which interfaces have DHCP server configuration, use:

show system dhcp server

Match the client’s MAC address or IP address in the lease output, and note the interface associated with the DHCP server. Confirm that the entry belongs to the device you intend to affect before proceeding.

Clear a DHCP lease using the FortiGate GUI

If your FortiOS version provides a delete or release action in DHCP Monitor, the GUI is often the simplest option for removing a single lease. The exact labels and placement can vary by release, but the general process is as follows:

  • Sign in to the FortiGate administrative interface.
  • Open DHCP Monitor using the dashboard, network menu, or GUI search.
  • Locate the lease by IP address, MAC address, or hostname.
  • Select the correct row and choose the available delete, clear, or release action.
  • Confirm the change if prompted, then refresh the lease list.

Check that the selected entry disappears or is no longer listed as an active lease. If your interface does not offer a per-device action, do not assume that deleting an unrelated DHCP object will clear the lease. Use the CLI method below only after checking whether it affects one client or the whole interface on your FortiOS version.

Some GUI layouts may not expose lease management, or the monitor may display information without providing a removal button. In that case, use the CLI, verify the command syntax with the FortiGate’s built-in help, and take care not to clear leases for a network you did not intend to affect.

Clear DHCP leases from the FortiGate CLI

A commonly used FortiGate CLI command for clearing leases is:

execute dhcp lease-clear <interface>

Replace <interface> with the name of the interface running the DHCP server, such as internal or a VLAN interface name. For example:

execute dhcp lease-clear internal

Important: This command may clear all DHCP leases associated with the specified interface rather than only one client’s lease. Confirm the behavior shown by CLI help for your FortiOS version before running it. If your goal is to remove one device, prefer a per-lease GUI action when available. Do not run an interface-wide clear on a production network unless you understand the impact.

After the command completes, list the leases again using the supported lease-list command for your version. Verify whether the target entry has been removed. If it remains, double-check the interface name and confirm that the device is using DHCP from this FortiGate rather than another server, such as a Windows DHCP server or an upstream router.

Make the client request a new DHCP address

Removing a lease from the FortiGate does not always cause the client to renew immediately. The device may still consider its current address valid and keep using it until its normal renewal process runs. For a faster change, renew the client’s DHCP connection after clearing the lease.

  • Windows: Open Command Prompt and run ipconfig /release, followed by ipconfig /renew.
  • macOS: Open the network settings for the active connection and use the option to renew the DHCP lease. The menu wording depends on the macOS version.
  • Linux: Renew the address using the network manager or DHCP client used by your distribution. The exact command varies by system.
  • Phones, printers, and other devices: Toggle Wi-Fi or the network connection, reconnect, or restart the device if it has no manual renew option.

Once the client reconnects, check the FortiGate lease list again. Confirm that the device has a current lease and that the assigned address is the one you expect. If the old address returns, check for a reservation or verify that the client is reaching the correct DHCP server.

Common reasons a lease will not clear or change

The client is connected to a different DHCP server. A FortiGate can only clear leases that it manages. If another router, server, or wireless controller is assigning addresses, clearing the FortiGate’s lease table will not change the client’s assignment. Check the client’s network details and the DHCP server configuration for that subnet.

The address is reserved. A configured reservation may cause the same IP address to be assigned again after the client renews. Review the DHCP server’s reserved-address settings if the client must receive a different address. Removing an active lease and changing a reservation are separate tasks.

The client has a manually configured IP address. Devices configured with a static address do not request an address through DHCP. Check the device’s network settings and set it to obtain an IP address automatically if it should use DHCP.

The lease list has not refreshed. Refresh DHCP Monitor or run the lease-list command again. If the entry is still present, verify the interface and device identity. A client that reconnects quickly may also obtain a new lease, making it look as though the original entry was never removed.

The DHCP address pool is exhausted. Clearing a lease may free an address temporarily, but a full pool can prevent other clients from receiving one. Review the configured address range, lease duration, reservations, and the number of active clients. Expanding the pool may be more appropriate than repeatedly clearing leases.

Is it safe to clear all leases on an interface?

Clearing every lease on an interface can interrupt normal network use. Clients may need to renew, and devices that do not renew promptly could experience a temporary loss of connectivity. Some clients may receive different addresses, which can affect systems that rely on IP-based access rules, monitoring, or allowlists.

For those reasons, clear only the affected lease when your FortiOS version and management interface support a targeted action. If the available CLI command clears all leases for an interface, use it only when that broader impact is acceptable. Let users or service owners know if a network-wide renewal is expected.

Conclusion

To clear a DHCP lease in FortiGate, identify the correct DHCP interface and locate the client’s entry in DHCP Monitor or the CLI lease list. Use a GUI action to remove an individual lease when your FortiOS version supports it. The CLI command execute dhcp lease-clear <interface> may clear leases for the entire interface, so confirm its scope before running it. Finally, renew the client’s DHCP connection and verify the new lease. If the address does not change, check for a reservation, a static client configuration, or another DHCP server on the network.


Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

Shrewdnia

Shrewdnia

Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


💡 Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments 👇

Back to blog

Leave a comment

JOIN THE SHREWDNIA COMMUNITY FORUM

What do you think?

Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

Join the Forum →