Skip to main content
wws
New Member
April 1, 2025
Question

FortiGate DHCP based on mac pattern

  • April 1, 2025
  • 5 replies
  • 1206 views

New Fortinet admin here.  I'm looking to configure the built-in DHCP server to push an alternate VLAN & Subnet based on MAC address.  This would be used for VoIP phones.

 

For example, the DHCP server would hand out 10.0.0.2 on VLAN 0 to the first non-VoIP device on the LAN.  But, if the MAC address matches those used by our VoIP handsets, it would hand out 10.0.1.2 on VLAN 100.

 

I'm looking to do this without forcing specific ports on the switches to be dedicated to the phones.

 

Any ideas?

 

Thanks in advance!

5 replies

AEK
SuperUser
SuperUser
April 1, 2025

If I understand well your requirement you want to assign a VLAN (and IP) to a device depending on its type.

If so then you need a NAC (like FortiNAC).

Or at least you may try achieve it with a RADIUS server.

AEK
wws
wwsAuthor
New Member
April 2, 2025

Correct - I would like to assign by MAC address pattern/prefix.

 

Definitely not something that requires radius or a special security/authentication device/service.  A linux or windows DHCP server could tackle this... but I was hoping to avoid going down that road.

AEK
SuperUser
SuperUser
April 2, 2025

If you just want to assign an IP by MAC then a DHCP is enough.

But if you want to assign a VLAN as well, then I don't see how you can do it with DHCP. As per my knowledge only RADIUS or NAC can do that.

AEK
wws
wwsAuthor
New Member
May 3, 2025

Just a quick follow-up that we went with Auto-VoIP-VLAN on our switches, and created a separate LAN (VLAN Interface) on the FortiGate side of things.  It works, but has introduced another conundrum. 

 

Separate post on that here:  https://community.fortinet.com/t5/Support-Forum/Change-MAC-address-for-HA-d-LAN-interface/m-p/390425#M268751

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!