Created on
07-16-2025
07:28 AM
Edited on
07-23-2025
08:27 AM
By
Stephen_G
Description | This article describes how to release an IP address when FortiGate is the DHCP client. |
Scope | FortiGate. |
Solution |
When switching FortiGates, certain ISP providers require the FortiGate to release the DHCP address to assign the same IP to the new FortiGate.
How to configure the FortiGate to release an IP assigned by a DHCP server:
Switch the IP address in the Interface configuration settings from DHCP to Manual.
For example, the FortiGate below was assigned the IP address 10.4.9.23.
In the CLI, set the mode to static and set the IP addresses as below:
F4 (port1) # set mode ? F4 (port1) # set mode static F4 (port1) # set ip 10.4.9.1/24 F4 (port1) # show edit "port1"
After changing the IP address from DHCP to Manual, the following can be seen on a Sniffer trace.
Unicast packet from the FortiGate to DHCP server releasing the IP using option 53:
Frame 5: 590 bytes on wire (4720 bits), 590 bytes captured (4720 bits)
Or run the following commands in CLI to debug DHCP client traffic:
diagnose debug reset diagnose debug console timestamp enable
To stop debugging:
diagnose debug reset
Related article: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.