LinuxQuestions.org
Review your favorite Linux distribution.
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 01-07-2010, 10:46 AM   #1
mahdit
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Question DHCP:bad subnet/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:59 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,954
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
To get the range you want you'd need to calculate the CIDR.

There are some good online tools for doing this.

If you go to:
http://www.subnet-calculator.com/cidr.php
Input 20.20.20.20 as the IP address then select 14 as maximum address (lowest number that will accomodate the 10 you want) it will show you:

NETMASK should be 255.255.255.240.
First IP is actually 20.20.20.16 and last IP is 20.20.20.31. This encompasses the range you specified (20.20.20.20 - 20.20.20.30). It also gives you the CIDR (/28).
 
1 members found this post helpful.
Old 01-07-2010, 11:02 AM   #3
mahdit
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
thank you man useful,nice
 
  


Reply

Tags
dhcp, err


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: Bad subnet number/mask combination OliXNet Linux - Networking 4 01-07-2010 10:17 AM
dhcp - bad subnet/mask combination ecunningham Linux - Server 2 03-19-2009 08:19 AM
ignoring dhcp requests on eth0 and wlan0 define subnet mask? Person_1873 Linux - Server 1 12-15-2007 05:58 AM
dhcpd server problem: bad subnet number/mask combination 144419855310001 Linux - Networking 2 09-13-2007 10:40 AM
Subnet Mask with 1 IP. Ionized Linux - Networking 25 06-10-2007 12:20 AM


All times are GMT -5. The time now is 07:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration