
Created on
04-08-2009
01:23 AM
Edited on
08-06-2024
03:57 PM
By
Jean-Philippe_P
Description
In a FortiGate where an interface IP is assigned by an ISP, DHCP may have to be used. In these scenarios an ISP will often also provide a Default Route and the DNS settings.
Scope
Applies only to:
- FortiGate or VDOM in NAT mode.
- FortiGate in Standalone mode (non-HA).
Solution
Configuration (GUI).
-
Log in to the FortiGate.
-
From the navigation pane, go to Network -> Interfaces.
-
Edit the interface connecting to the ISP, by selecting the 'edit' icon.
-
Change the addressing mode to DHCP .
-
Enable 'Retrieve default gateway from server'. This will place a default route in the routing table with a distance as shown in the distance field. In this example, the distance is 5.
- If the ISP also provides the DNS settings, enable the field 'Override internal DNS'.
-
Select OK.
-
The 'Status' should change to connected and show the IP information obtained (IP address, default gateway, DNS).
GUI page: FortiGate Interface to use DHCP.