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.
nathan_h
Staff
Staff
Article Id 372946
Description

 

The article describes how to fix DHCP when switch-controller-dhcp-snooping is enabled on a VLAN FortiSwitch interface. DHCP snooping can be used to prevent rogue DHCP servers. 

 

Scope

 

FortiGate, FortiSwitch

 

Solution

 

On CLI:

 

FGT-NAT # show sys int VLAN_20
    config system interface
        edit "VLAN_20"
            set vdom "root"
           set ip 10.10.11.1 255.255.255.0
           set allowaccess ping
            set device-identification enable
            set role lan
            set snmp-index 34
            set switch-controller-dhcp-snooping enable
            set interface "fortilink"
            set vlanid 20
         next
    end

 

On GUI:

 

2025-01-27 16 36 36.png

 

DHCP request is not received on the FortiGate.

 

2025-01-27 16 46 30.png

Access FortiSwitch from FortiGate under WIFI & Switch Controller -> Managed FortiSwitches -> 'Right-Click' a FortiSwitch -> Connect to CLI -> Enter password.

 

Enter the command 'get switch dhcp-snooping database-summary'. FortiSwitch trunk is showing on untrusted ports.

 

S108EPS223XXXXXX # get switch dhcp-snooping database-summary

2025-01-27 16 54 50.png

Configure FortiSwitch trunk to 'dhcp-snooping: trusted'.

S108EPS223XXXXXX # config switch int

S108EPS223XXXXXX (interface) # edit GT61FTK19XXXXXX

S108EPS223XXXXXX (GT61FTK19XXXXXX) # set dhcp-snooping
trusted Trusted DHCP snooping interface.
untrusted Untrusted DHCP snooping interface.

S108EPS223XXXXXX (GT61FTK19XXXXXX) # set dhcp-snooping trusted

S108EPS223XXXXXX (GT61FTK19XXXXXX # end

 

2025-01-27 17 06 52.png

 

Verify on the FortiGate that the PC received an IP address.

 

2025-01-27 17 11 46.png

 

Related article:

Troubleshooting Tip: Wireless clients do not receive IP through DHCP from Bridged SSID