[CentOS] Extend DHCP range

Mon Aug 26 13:56:11 UTC 2019
Bill Gee <bgee at campercaver.net>

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