having Issus with configuring DHCP server
Posted: 2020/05/28 12:56:03
I have this issue when I am trying to configuring my DHCP server using dhcpd
I was trying to assign a subnet with network address 192.168.200.0/20
however when I tried to configure the DHCP with following configuration
subnet 192.168.200.0 netmask 255.255.240.0 {
pool {
range 192.168.200.2 192.168.200.254;
default-lease-time 600;
option routers 192.168.192.1;
}
}
it shows up an error message:
Internet Systems Consortium DHCP Server 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 8: subnet 192.168.200.0 netmask 255.255.240.0: bad subnet number/mask combination.
subnet 192.168.200.0 netmask 255.255.240.0
^
Configuration file errors encountered -- exiting
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
it says I have a bad subnet number / mask combination, so what should I do to make this subnet have network address with 192.168.200.0/20?
Did I miss understood the way to configure the DHCP server and misunderstood the subnet address and subnet mask?
I was trying to assign a subnet with network address 192.168.200.0/20
however when I tried to configure the DHCP with following configuration
subnet 192.168.200.0 netmask 255.255.240.0 {
pool {
range 192.168.200.2 192.168.200.254;
default-lease-time 600;
option routers 192.168.192.1;
}
}
it shows up an error message:
Internet Systems Consortium DHCP Server 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 8: subnet 192.168.200.0 netmask 255.255.240.0: bad subnet number/mask combination.
subnet 192.168.200.0 netmask 255.255.240.0
^
Configuration file errors encountered -- exiting
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
it says I have a bad subnet number / mask combination, so what should I do to make this subnet have network address with 192.168.200.0/20?
Did I miss understood the way to configure the DHCP server and misunderstood the subnet address and subnet mask?