Created on
01-17-2025
01:43 AM
Edited on
01-28-2025
04:35 AM
By
Jean-Philippe_P
Description | This article explains if the FortiGate firewall is adding the correct relay information while forwarding the request to another server. |
Scope | FortiGate. |
Solution |
Some LAN networks require an IP address through a DHCP server which is behind the FortiGate. In such a scenario, FortiGate has to add a DHCP option 82 information while forwarding the DHCP requests to the correct server.
As per the above lab setup PC tries to get an IP address from the DHCP server connected behind FortiGate. The PC generates a DHCP Discover message to the FortiGate interface port5, since the firewall is configured as a DHCP relay it has to add some information so the return packet can be received on the correct interface.
The DHCP uses an option 82 field which includes the relay agent information, in the above case port5 information since the request was received on the internal port5.
In the attached PCAP file it is possible to see that the relay agent information was inserted with option 82 by the FortiGate. This needs to be verified by the dhcprelay debug as well.
Lab_FG1 # diagnose debug application dhcprelay -1 Lab_FG1 # diagnose debug enable Lab_FG1 # (xid:818d98b4) received request message from 0.0.0.0:68 to 255.255.255.255 at Port5
In the above debug it shows option 82 was inserted and the packet was routed out to DHCP server 172.26.3.245. The PCAP file and debug both should be shown with DHCP option 82 added/inserted before forwarding it out to the DHCP server.
Related article: Troubleshooting Tip: DHCP relay issue |