Extend DHCP Range
I have a simple DHCP range .
option routers 192.168.1.1;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.60 192.168.1.129;
range 192.168.1.150 192.168.1.199;
}
So I want to add a range 192.168.2.1 -> 192.168.2.254
so I did this:
subnet 192.168.1.0 netmask 255.255.254.0 {
range 192.168.1.60 192.168.1.129;
range 192.168.1.150 192.168.1.199;
range 192.168.2.1 192.168.2.254;
}
then tried to restart the dhcpd server… This did not work. How do I get more dhcp addresses ?
Thanks,
Jerry
2 thoughts on - Extend DHCP Range
subnet 192.168.0.0 netmask 255.255.252.0
would let you have .0.x .1.x .2.x and .3.x and so your ranges are included.
Is that what you want?
Regards.
The first thing that jumps out to me is that you cannot have a /23 subnet which starts at .1. In other words – 192.168.0.1/23 is not valid. You can use either 192.168.0.0/23 or 192.168.2.0/23.
If you want to use .1 and .2 as shown, then they must be two separate /24 subnets. That wil require some router configuration in addition to the DHCP setup.