Description | This article describes the reason behind the DHCP failing when having DHCP relay on FortiGate with dynamic VLAN change for the DHCP client |
Scope | FortiGate. |
Solution |
With a DHCP request received on the VLAN 15, it will be relayed to the DHCP server configured on the interface.
config system interface
The DHCP request fails initially on the VLAN15 as this VLAN is not the one on which the DHCP address should be assigned.
2025-01-22 14:32:56.660633 VLAN15 in 0.0.0.0.68 -> 255.255.255.255.67: udp 548
In the meantime, the dynamic VLAN switch takes place on 3rd party device, putting the DHCP client in a different VLAN. DHCP requests are then seen on the VLAN25 interface, which is configured with a DHCP relay and should assign an IP address to the DHCP client.
config system interface
The DHCP fails at this point. After relaying DHCP discover packets and upon receiving the DHCP offer from DHCP server, FortiGate sends the DHCP offer packets back via the VLAN15.
In the packet capture review with Wireshark, if the same transaction ID for DHCP Discover packets is thereafter the VLAN change, the issue will be faced.
The code has been changed to address this, and this behavior is not faced on and onward the following versions releases: v7.2.11, v7.4.6, v7.6.1 . |