LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-19-2004, 04:23 PM   #1
OliXNet
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:

ISP<---------->eth0-olixnet-eth1<--------->kvakos

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

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

Rep: Reputation: 15
Quote:
Originally posted by OliXNet
Both ethernet adapters on olixnet have the same ip - 172.16.19.32
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).
Code:
ipcalc -n 172.16.19.0 -m 255.255.252.0
NETMASK=255.255.252.0
NETWORK=172.16.16.0
Also your 172.16.19.0 is not a valid network address for that subnet., that's why /24 worked ok.

Here's a howto if you need it: http://www.brennan.id.au/10-DHCP_Server.html

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

Original Poster
Rep: Reputation: 0
thank you very much... but... I´ve configured eth1 to IP 172.16.19.79, then DHCP subnet IP to 172.16.16.0 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 172.16.19.79 even 172.16.19.32 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, 10:04 AM   #4
mahdit
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 20.20.20.0 netmask 255.0.0.0 {
range 20.20.20.20 20.20.20.30;
};

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

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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