LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2009, 07:59 AM   #1
ecunningham
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
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
 
Old 03-19-2009, 08:13 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
subnet 192.168.1.1 netmask 255.255.255.0
Try 192.168.1.0
 
Old 03-19-2009, 08:19 AM   #3
ecunningham
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Perfect, thanks!
 
  


Reply



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: Bad subnet number/mask combination OliXNet Linux - Networking 4 01-07-2010 10:17 AM
ignoring dhcp requests on eth0 and wlan0 define subnet mask? Person_1873 Linux - Server 1 12-15-2007 05:58 AM
What is Subnet Mask? cousinlucky Linux - Networking 21 10-17-2007 11:08 AM
dhcpd server problem: bad subnet number/mask combination 144419855310001 Linux - Networking 2 09-13-2007 10:40 AM
Subnet mask mikeshn Linux - Networking 1 08-26-2002 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:14 PM.

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