Skip to main content
kaurs
Staff
Staff
November 20, 2022

Technical Tip: Devices are unable to get an IP address from DHCP server

  • November 20, 2022
  • 0 replies
  • 14564 views
Description This article describes the vci-match enable/disable option.
Scope FortiGate.
Solution

Connected devices are not able to get an IP address from the DHCP server configured on FortiGate's interface and get the following error using the DHCP debug command.

 

diagnose debug reset
diagnose debug application dhcps -1
diagnose debug enable

 

SC-FG100F # [debug]locate_network prhtype(1) pihtype(1)

[warn]Can't locate subnet in shared network of packet and packet is not a DHCPREQUEST and htype(1) != intf htype(1)..dropping

[debug]locate_network prhtype(1) pihtype(1)

 

This could be because vci-match is enabled and vci-string is configured on that interface’s DHCP server.

 

For example:

 

config system dhcp server

    edit 1

        set dns-service default

        set default-gateway 10.2.2.131

        set netmask 255.255.255.0

        set interface "port3"

            config ip-range

                edit 1

                    set start-ip 10.2.2.133

                    set end-ip 10.2.2.133

                    set vci-match enable

                    set vci-string "FortiSwitch"

                next

 

In this example, devices that match vci-string 'FortiSwitch' only would be able to connect otherwise will not get an IP.

 

The solution would be to either disable the vci-match or configure an appropriate vci-string.

 

config system dhcp server

    edit 1

        config ip-range

            edit 1

                set vci-match disable

        end

end

 

Or:

 

config system dhcp server

    edit 1

        set vci-match disable

    next

end

 

Note: 

After disabling vci-match, the end system runs the following commands and clears the DHCP process, post that the end system gets a DHCP IP from the DHCP pool.

Type 'ipconfig /release' (no quotes) and press 'Enter'. Once the prompt returns, type 'ipconfig /renew' (no quotes), then hit 'Enter'.

 
Another possible reason is that the DHCP range is different than the interface subnet. In this case, the DHCP range is from 10.136.0.2 to 10.136.0.254, while the interface subnet is 10.137.0.0/24. Modifying the DHCP range or interface subnet to be the same will fix the issue.

Screenshot 2025-06-09 155847.png

Related document:

VCI pattern matching for DHCP assignment

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.