Description | This article provides the CLI commands to renew/reconnect the DHCP/DHCPv6/PPPoE connection of the WAN interface. |
Scope | FortiGate. |
Solution |
The FortiGate interface can be configured as a DHCP client or PPPoE client to fetch the IP dynamically. In some conditions, it can be necessary to refresh the connection to fetch different IPs or to test the connection.
The below commands can be used to refresh the DHCP, DHCPv6, or PPPoE connection.
To renew the DHCP lease:
execute interface dhcpclient-renew <interface name>
To renew the DHCPv6 lease:
execute interface dhcp6client-renew <interface name>
To reconnect to the PPPoE server:
execute interface pppoe-reconnect <interface name>
These commands can be used to reduce the need to log in to FortiGate GUI to refresh the connections. If the incorrect interface is selected for renewal, the following message can be received:
Related article: Troubleshooting Tip: Renew IP address of the interface in DHCP, DHCPv6 or PPPoE |
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.