Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-19-2004, 05:23 PM   #1
LQ Newbie
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
DHCP: Bad subnet number/mask combination

Hello. I´m new to linux and I would like to configure my network. I have two PCs (server ¨olixnet¨ running Mandrake 10.1 - connected to intenet via ethernet card eth0 and to a laptop ¨kvakos¨ running Windows XP via eth1). This is a topology:


Both ethernet adapters on olixnet have the same ip - Everything works fine but the DHCP. When I try to start DHCP, it writes ¨bad subnet number/mask combination. subnet netmask¨
This is my dhcpd.conf file:

ddns-update-style none;
subnet netmask {
# default gateway
option routers;
option subnet-mask;
range dynamic-bootp;
default-lease-time 21600;
max-lease-time 43200;
When I change netmask to it works but I need to leave it It worked on Mandrake 9. Please tell me how to make it work properly. Thanx.
Old 12-19-2004, 07:03 PM   #2
Registered: Nov 2004
Location: Brisbane, Australia
Distribution: Fedora Core 5
Posts: 89

Rep: Reputation: 15
Originally posted by OliXNet
Both ethernet adapters on olixnet have the same ip -
You need to assign different IP addresses to each network device, they can not be the same.

Also, you haven't specified a range of IPs to lease for your workstations (only bootp).
ipcalc -n -m
Also your is not a valid network address for that subnet., that's why /24 worked ok.

Here's a howto if you need it:

Old 12-20-2004, 11:32 AM   #3
LQ Newbie
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
thank you very much... but... I´ve configured eth1 to IP, then DHCP subnet IP to and successfully started DHCP server. I´ve tried ipconfig /renew on WinXP and it works properly... The only problem is that I can´t ping the linux machine. ping even doesn´t work... I know it is probably stupid problem, but remember I am very new to Linux.. So, please be patient
Old 01-07-2010, 11:04 AM   #4
LQ Newbie
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Question bad subnet/number mask combination

Hi,I use following commands in dhcpd.conf and get the subnet number/mask combination err.please help me

subnet netmask {

what is my problem ?
Old 01-07-2010, 11:17 AM   #5
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
This thread is 4 years old, you might be better off starting a new thread in the appropriate forum.


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
Subnet Mask with 1 IP. Ionized Linux - Networking 25 06-10-2007 01:20 AM
subnet mask kizersouzay Linux - Networking 1 08-31-2005 04:07 PM
2 nics on the same subnet mask wrexy Linux - Networking 6 10-11-2004 06:33 PM
Remote Subnet Mask? - help! MikHud Linux - Networking 2 01-14-2003 06:21 AM
Subnet mask mikeshn Linux - Networking 1 08-26-2002 02:19 PM

All times are GMT -5. The time now is 12:15 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