LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-30-2012, 07:09 AM   #1
daigle.ne
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
Having problems with DHCP config


i'm currently in a Linux server class. installed & configured DHCP, the config file is as follows:

subnet 10.1.1.20 netmask 255.255.255.0 {
range 10.1.1.150 10.1.1.250;
option routers 10.1.1.254;
option domain-name-servers 10.1.1.10, 10.1.1.20;
option domain-name "cpt161-02-04.local";
default-lease-time 518400;
max-lease-time 691200;
}

When I restart the service, I keep getting the output "bad subnet number/mask combination. That is the ip address and subnet mask of the server I installed DHCP on so I don't understand the problem. Help plz?

Last edited by daigle.ne; 04-30-2012 at 07:28 AM.
 
Old 04-30-2012, 07:34 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
Change
Code:
subnet 10.1.1.20 netmask 255.255.255.0
To this and try
Code:
subnet 10.1.1.0 netmask 255.255.255.0
 
1 members found this post helpful.
Old 04-30-2012, 07:37 AM   #3
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
you are using wrong network and subnet mask. you should use a network mask in SUBNET field not a actual IP address.

#RIGHT
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.150 10.1.1.250;



#WRONG
subnet 10.1.1.20 netmask 255.255.255.0 {
range 10.1.1.150 10.1.1.250;

Thanks,
em31amit
Amit M.
 
1 members found this post helpful.
Old 04-30-2012, 07:38 AM   #4
daigle.ne
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I actually just tried that before you posted. It seem to work when I restart the service, but when I go to my client and issue the command "sudo dhclient eth0" i get no output, so I can't verify my configurations worked.
 
Old 04-30-2012, 07:41 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
Check if your client got the network information from the server.
 
Old 04-30-2012, 07:46 AM   #6
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
check what your client and server /var/log/messages file saying ....
 
Old 04-30-2012, 07:55 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
Also check the dhcpd.leases file located usually in /etc. If you do not find it, search for the file. It should contain all the leases the server has given to the clients.
 
  


Reply


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 config pingvina Linux - Software 4 02-16-2006 02:03 PM
DHCP config problems Fritz_Monroe Linux - Newbie 7 06-16-2005 01:23 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
DHCP config. problems on RH 7.0 batchild Linux - Networking 5 05-19-2003 10:14 PM
DHCP client problems - network config RedHat123 Linux - Networking 1 12-16-2001 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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