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
On 8/26/19 3:48 PM, Jerry Geis wrote:> 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 ?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. -- Roberto Ragusa mail at robertoragusa.it
On Monday, August 26, 2019 8:48:50 AM CDT Jerry Geis wrote:> 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 > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >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. -- Bill Gee