Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
DarkOlive871
New Contributor

DHCP over a router and Scope Naming

I'm working with a FortiGate running version 7.4.9. The current setup has a single subnet between the FortiGate and our on-prem router. However, behind that router, there are many VLANs and subnets on the LAN. I’d like to move DHCP services for those internal VLANs to the FortiGate, but the FortiGate doesn’t currently have Vlan interfaces or routes for those downstream subnets. 

What’s the best way to configure DHCP on the FortiGate in this scenario?

Or is there a way for the FortiGate to serve DHCP to those VLANs without having direct interfaces in each subnet?

I have the DHCP Helper disabled but already setup. How do you Name the DHCP Vlans? 

 

I also didn't see a way to name the scopes? 

 

Thanks in advance for any guidance!
FortiGate  

12 REPLIES 12
AEK
SuperUser
SuperUser

AEK
DarkOlive871

This helps a lot. I emailed my SE for a Feature Request about the Scope naming, I don't see it ANYWHERE in the cli. On 30+ different scopes it makes it a huge pain.   

This is a little scary, Since they will all be the same relay agent. 
"When the IP pool is exhausted, the DHCP daemon assigns the IP from other pools that have the same relay agent."

DarkOlive871
New Contributor

Is there a max amount of dhcp scopes? 

FW-01 # config system dhcp server

FW-01 (server) # edit 12
Command fail. Return code -4 (reached the maximum number of entries)

Toshi_Esumi

depending on the model. But the smallest ones like 40F, 30G has max 32. You can check it below:
https://docs.fortinet.com/max-value-table
You wouldn't be able to choose 7.4.9 yet but 7.4.8 should have the same limit.

Toshi

AEK

32 is still far.

Can it be caused by system.dhcp.server:ip-range is limited to 10?

AEK
AEK
DarkOlive871

Yea I got it up to 33 but I think the limit is 32.  Also setting the Name would be awesome for each scope.
2025-10-16 08_51_23-Chat _ DOTS _ kern.org _ ledavisson@kern.org _ Microsoft Teams.png.

Toshi_Esumi

I was thinking "edit 12" might not the highest number in the "config sys dhcp server".

Toshi

AEK

I see the output has exactly 32 servers and number 12 is a gap. That's why.

AEK
AEK
DarkOlive871
New Contributor

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors