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.
nithincs
Staff & Editor
Staff & Editor
Article Id 266696
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> 

 

interfacesss.PNG

 

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:

 

Nov22_edited.jpg

 

Related article:

Troubleshooting Tip: Renew IP address of the interface in DHCP, DHCPv6 or PPPoE