Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-05-2015, 04:47 AM   #1
LQ Newbie
Registered: May 2015
Posts: 9

Rep: Reputation: Disabled
Bad subnet/netmask , DHCP installation


I'm on WMware workstation with debian Wheezy.
I have a problem when a restart the Dchp.
It said Bad subnet number/mask combination.

This is logs:

root@debian-main:/# /etc/init.d/isc-dhcp-server restart
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was:
Internet Systems Consortium DHCP Server 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/
/etc/dhcp/dhcpd.conf line 50: subnet netmask bad subnet number/mask combination.
subnet netmask{
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 or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..


And this my file dhcpd.conf:

# A slightly different configuration for an internal subnet.
subnet netmask{
# option domain-name-servers;
# option domain-name "";
option routers;
option broadcast-address;
default-lease-time 600;
max-lease-time 7200;

For me it's the good subnet number/mask combination.

Can you help me please?

Thanks you,

Old 05-05-2015, 05:52 AM   #2
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 840

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Originally Posted by Pierrick View Post
And this my file dhcpd.conf:
subnet netmask{
How about this:
subnet netmask{
Old 05-05-2015, 06:19 AM   #3
LQ Newbie
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
It works!

Thanks you !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dhcp server bad subnet combination EDDY1 Linux - Server 20 05-29-2014 02:08 AM
Netmask and multiple subnet setup dpeterson3 Linux - Networking 7 08-31-2010 09:58 AM
DHCP:bad subnet/mask combination mahdit Linux - Networking 2 01-07-2010 12:02 PM
DHCP: Bad subnet number/mask combination OliXNet Linux - Networking 4 01-07-2010 11:17 AM
dhcp - bad subnet/mask combination ecunningham Linux - Server 2 03-19-2009 09:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration