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.
subramanis
Staff
Staff
Article Id 190657

Description

 

This article explains how to specify more than one DHCP relay IP, to allow for the coverage of additional LAN subnets.
It is possible to set up to 8 IPs from the CLI. 


Scope

 

FortiGate.


Solution

 
In the FortiOS GUI, navigate to Network -> Interfaces -> Interface_NAME.
 Stephen_G_0-1736441149002.png

 

In the GUI interface view, under the DHCP Ranges column, the DHCP scope and the DHCP relay server IP can be viewed.

 

DHCP relay SS 2.PNG
 
Via CLI:

config system interface
FGT (interface) # edit port2
FGT (port2) # set dhcp-relay-service enable
FGT (port2) # set dhcp-relay-ip 1.1.1.1 2.2.2.2 3.3.3.3
FGT (port2) # next
FGT (interface) # end
 
Debug command for DHCP relay:
 
diagnose debug application dhcprelay -1
 
Note: If multiple DHCP Relays are configured. The FortiGate will send the requests to all the DHCP servers configured in the relay settings and the client will accept an offer from the first DHCP server to reply.
 
Related document: