Configure a Network Interface¶
An interface is any port (physical or virtual) on the FortiGate. Each interface has a role (WAN, LAN, DMZ), an IP address, and access settings (HTTPS, SSH, ping). Interface configuration is the foundation of everything — firewall policies, routing, VPNs all reference interfaces.
Before You Start¶
- Know which physical port the cable is plugged into (e.g.
wan1,port1,internal). - Know what role the interface should play (WAN / LAN / DMZ).
- Know the IP scheme — static IP or DHCP from upstream.
Steps¶
- Network → Interfaces.
- Click the interface name (or the edit icon next to it).
- Interface Name is locked (it's the physical port label).
- Set Alias — a friendly label like
Internet-PrimaryorOffice-LAN. Optional but recommended; reduces confusion. - Role — pick:
WANfor internet-facing.LANfor internal trusted networks.DMZfor semi-trusted (public-facing servers).Undefinedfor special cases.
- Addressing mode:
- Manual — set static IP/Netmask (e.g.
203.0.113.10/24). - DHCP — let upstream router/ISP assign.
- PPPoE — for DSL connections.
- One-Arm Sniffer — for IDS-only deployments.
- Manual — set static IP/Netmask (e.g.
-
Administrative Access — check which admin services should answer on this interface:
- HTTPS — admin GUI access.
- SSH — CLI access.
- PING — responds to ICMP echo.
- FMG-Access — FortiManager management.
- CAPWAP — for managed FortiAPs.
- FCT-Access — for FortiClient.
- Security Fabric Connection — for Fabric topology.
Warning
NEVER enable HTTPS / SSH on a WAN interface unless you have strong protections (Trusted Hosts list, MFA, geo-block). Public admin exposure is the #1 cause of compromised FortiGates.
- DHCP Server — enable on LAN interfaces if this FortiGate should hand out IPs to clients. See Set Up a DHCP Server.
- Device Detection —
Enabledfor LAN interfaces lets FortiGate fingerprint connected devices. - Status —
Upto enable the interface,Downto disable. - Click OK to save.
CLI Equivalent¶
config system interface
edit wan1
set alias "Internet-Primary"
set role wan
set ip 203.0.113.10/24
set allowaccess ping
set status up
next
end
Verify¶
get system interface
Look for your interface in the list — status should be up, IP should match what you set.
Test connectivity:
execute ping 8.8.8.8 # from a WAN with internet route
execute ping-options source 192.168.1.99 # ping from a specific interface IP
execute ping 192.168.1.1 # to upstream gateway
Common Issues¶
- Interface won't come up. Cable issue, duplex mismatch, or SFP not recognized. Check Network → Interfaces for link status icon (green = up, red = down). On CLI:
get system interface physical. - Can't reach the FortiGate via the interface. Administrative Access doesn't include HTTPS/SSH/PING. Add via console if you're locked out.
- DHCP didn't get an IP. ISP isn't actually serving DHCP on that VLAN, or wrong MAC/handshake. Try static if you know the IP.
- Got an IP but no internet. Default route missing. See Add a Static Route — set
0.0.0.0/0via the upstream gateway. - Two interfaces in the same subnet. FortiGate will refuse. Each interface needs its own subnet.