[CentOS] Extend DHCP range

Roberto Ragusa mail at robertoragusa.it
Mon Aug 26 13:55:05 UTC 2019


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


More information about the CentOS mailing list