DHCP server multiple gateways

Ulisses Buonanni ulisses.b at gmail.com
Wed Oct 21 23:41:21 CEST 2020


Hello. First time using this list :)

Need to know if it is possible and then I will appreciate some tips/howto
guides.

Summary:
How to configure (if it is possible) raspberry pi as freeradius server with
dhcp (conditional IP range based on username)

Scenario:

In my shared farm we have 5 houses accessing internet through 5x LTE/4g
antennas (each house has its own mobile plan and antenna, but they share
local network infrastructure to access the antennas).

Network: all devices are in the same LAN: 10.0.0.0 mask:255.255.240.0

Each house has its own access point
House1AP - IP 10.0.2.1   - offering IPs:10.0.2.2-10.0.2.100      Gateway:
10.0.0.2
House2AP - IP 10.0.4.1   - offering IPs:10.0.4.2-10.0.4.100      Gateway:
10.0.0.4
House3AP - IP 10.0.6.1   - offering IPs:10.0.6.2-10.0.6.100      Gateway:
10.0.0.6
House4AP - IP 10.0.8.1   - offering IPs:10.0.8.2-10.0.8.100      Gateway:
10.0.0.8
House5AP - IP 10.0.10.1 - offering IPs:10.0.10.2-10.0.10.100 Gateway:
10.0.0.10

All access points are wired connected to a managed switch (IP: 10.0.1.2)
This switch is connected through a fiber channel to another switch
(10.0.1.1) that is wired connected to all LTE/4g routers/gateways.

Raspberry pi (IP 10.0.1.4) is wired connect to the managed switch.

Until now every house has its own unique ssid (wpa2 personal) and devices
from one house cant access APs from other houses.

I'm wondering if it is possible to change all APs to use wpa2 enterprise in
a way that freeradius (based on the username -not the mac address ) set IP
range and gateway that user belong.

For example, if I belong to house1 (using gateway 10.0.0.2) when I go to
visit house2 the House2AP should recognize me as house1 and send me the same
gateway as house1.

Thanks in advance
Ulisses



More information about the Freeradius-Users mailing list