LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   dhcp - bad subnet/mask combination (https://www.linuxquestions.org/questions/linux-server-73/dhcp-bad-subnet-mask-combination-712807/)

ecunningham 03-19-2009 07:59 AM

dhcp - bad subnet/mask combination
 
Hi,

I'm trying to run a dhcp server on eth1, but I keep getting the error "bad subnet number/mask combination."

Can anyone help?

Here is my dhcpd.conf file:

Quote:

default-lease-time 86400;
max-lease-time 172800;
log-facility local7;
ddns-update-style ad-hoc;

#Basic subnet declaration
subnet 192.168.1.1 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.15;
}
What is wrong with this combination and how can I find the right one?

Thanks,
Ewan

bathory 03-19-2009 08:13 AM

Quote:

subnet 192.168.1.1 netmask 255.255.255.0
Try 192.168.1.0

ecunningham 03-19-2009 08:19 AM

Perfect, thanks!


All times are GMT -5. The time now is 05:43 PM.