Hi guy,
I want to know if it’s possibile to have in Nethserver 7 release more than one DHCP ranges in the same network segment.
My current server (linux server, Debian 8 with isc-dhcp-server) has more than one DHCP range with IP address reservation (no free lease dynamic range only static) but in Nethserver I don’t see a similar GUI configuration.
It happens when you are out of IP in a segment and can’t expand it because near to it there are configured printers/cams/servers/scanners/someotherthings that have fixed IP. (real experience…)
AFAIK, dnsmasq (NethServer dhcp server) will not assign fixed ip within the range.
Real world scenario: green network: 192.168.5.0/24, dhcp range 192.168.5.1-254, many fixed ip addresses scattered in the 192.168.5.1-254 range (printers, voip gateways, cams, etc), never seen an ip conflict in years.
So, i have a printer with ip 192.168.16.90 that it’s turned off at the moment.
I set up the DHCP server and a client have assigned 192.168.16.90 from the DHCP server.
Then, i turn on the printer…
mkdir -p /etc/e-smith/templates-custom/etc/dnsmasq.conf
cd /etc/e-smith/templates-custom/etc/dnsmasq.conf
vi 31dhcp
dhcp-range=LanAssignedToDHCPRange,First.IP.Of.Range,Last.IP,Of,Range,Subnet.Mask.Of.Range,LeasingTimeInSeconds
In my current enviroment I don’t have any VLAN configuration but I have a DHCP reservation for all the hosts of organization
Clients correctly takes own configuration from DHCP server:
-clients with a fixed IP of subnet 1 and fixed MAC takes network parameters of subnet 1
-clients with a fixed IP of subnet 2 and fixed MAC takes network parameters of subnet 2
network parameters of subnet 1 and subnet 2 are globally definited in DHCP configuration file.
Only one network physical card on linux server with 2 logical subnet defined in dhcp configuration
Just playing the devils advocate here: What happens when a device enters your network that has no IP address reservation? It will get an IP in one or the other subnet. But it will be unpredictable what IP range. IMO this is a situation you want to prevent (the unpredictable part).