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

Help with DHCP on VLAN Interfaces

Hi all. I am relatively new to fortinet and would appreciate any assistance on the following matter.

Ive created an SSID "RadiusWifi"  which authenticates users via a RADIUS server. This SSID is also set up to dynamically assign the connected user to their designated VLAN as configured on the RADIUS Server using WPA2 Enterprise. I acheived this by creating all of the VLANS with 'Manual' IP addressing and configured a DHCP Server on each . I  assigned each of the created VLANS to the "RadiusWifi" interface. Users are currently able to connect and be correctly assigned to their designated VLANs. 

My problem is... I would like it to be set up so that each of the authenticated users  get IPs from an external DHCP server when they connect rather than using the ips provided by the fortigate VLAN interface's DHCP.

The users typically connect to the network via a wired connection which recieves ips from the external DHCP . My intention is for the "RadiusWifi" SSID to be an extension of the users wired connection. As a result, they would be assigned ips from the same subnet they typically connect to on a wired connection.

Can this be done?

Am i approaching the issue in the wrong way? are there alternative methods for dynamically  assigning these users their designated subnet? (example: A possible RADIUS Server Configuration)

Any assitance will be greatly appreciated.

Cheers.

 

3 REPLIES 3
sw2090
Honored Contributor

the easiest way might be to set the dhcp service on the vlan interface to be a dhcp forward to the external dhcp.

I am doing this on our Fortigates here for some wlan that has to get dhcp from an internal server behind the fgt.

 

-- 

"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams

-- "It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
lobstercreed
Valued Contributor

Exactly what Sebastian said.  The option is under "Advanced" in the GUI.  Select "Relay" as the mode and then specify one or more DHCP server addresses.  (If you need more than one, i.e. for redundancy, just put a space between the multiple IPs.)

 

In CLI it is under config system interface, then under edit <interface name> you would put:

set dhcp-relay-service enable

set dhcp-relay-ip "x.x.x.x" "x.x.x.x" etc

sw2090
Honored Contributor

ist it really?

 

Afair in FGT Cli the dhcp settings are on their own.

There is config system dhcp server for that...

 

However I never did config this on cli so far ;) 

 

-- 

"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams

-- "It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Labels
Top Kudoed Authors