LinuxQuestions.org
Visit Jeremy's Blog.
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 07-02-2011, 12:52 AM   #1
argon99
Member
 
Registered: Mar 2009
Posts: 37

Rep: Reputation: 16
What's wrong with dhcpd.cong file


Hello All
I have a network at my home that has wired and wireless clients. I wrote a dhcpd.conf file that looks correct to me. BUT the ip address doesn't get assigned to the machine with the mac address listed in the file. here is the file:
Quote:




# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
ddns-update-style ad-hoc;
default-lease-time 7400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "bing.net";
option domain-name-servers xx:xx:xx


#option domain-name-servers 8.8.8.8;
#option domain-name-servers 8.8.4.4;

#deny unknown-clients;


subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.19;
}


host UNBT {
hardware ethernet 00:15:6D:AD:xx:xx;
fixed-address 192.168.1.20;
}

host helen-wired {
hardware ethernet 90:E6:BA:90:xx:xx;
fixed-address 192.168.1.2;
}

host laptop-wired {
hardware ethernet 000:59A:xx:xx;
fixed-address 192.169.1.3;
}

host andy {
hardware ethernet 00:13:8f:29:xx:xx;
fixed-address 192.168.1.4;
}

host silver {
hardware ethernet 00:13:8F:7E:xx:xx;
fixed-address 192.168.1.5;
}

host phenom {
hardware ethernet 00:E0:4D:AD:xx:xx;
fixed-address 192.168.1.6;
}

host tvboxen-wired {
hardware ethernet 00:1C:C0:7A:46:bb;
fixed-address 192.168.1.7;
}

host comp-4 {
hardware ethernet 00:e0:4d:0f:xx:xx;
fixed-address 192.168.1.8;
}

###################
## from 192.168.1.10 are wireless hosts
####################

host martin {
hardware ethernet 70:71:BC:13:xx:xx;
fixed-address 192.168.1.10;
}

host Marys-comp {
hardware ethernet 00:C0:6A:1B:xx:xx;
fixed-address 192.168.1.11;
}


host tvboxen-wireless {
hardware ethernet 00:FD:07:93:xx:xx;
fixed-address 192.168.1.14;
}


host helen-wireless {
hardware ethernet 00:25:d3:BF:xx:xx;
fixed-address 192.168.1.12;
}

host laptop-wireless {
hardware ethernet 00:1C:C0:7A:xx:xx;
fixed-address 192.168.1.13;
}


host A30 {
hardware ethernet 00:0e:35:9a:xx:xx;
fixed-address 192.168.1.16;
}


host TOSHIBA {
hardware ethernet 00:18:E7:76:xx:xx;
fixed-address 192.168.1.17;
}



I have sanitized the mac address but I can assure you they are all correct. What happens is the client machine comes up but is assigned a number other then the one I wanted it to get. What is wrong with my file. I suspect it's something simple that has just passed my attention.

I am using Slackware 12.2 for my server. All help would be appreciated
 
Old 07-02-2011, 01:50 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Nothing jumps out at me. Have you checked your dhcpd.leases and log files for answers?
 
Old 07-02-2011, 10:19 PM   #3
argon99
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by lazydog View Post
Nothing jumps out at me. Have you checked your dhcpd.leases and log files for answers?
Yes I have and nothing looks wrong there at all. Currently I am running just this part:
Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
ddns-update-style ad-hoc;
default-lease-time 7400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "bing.net";
option domain-name-servers xx:xx:xx


#option domain-name-servers 8.8.8.8;
#option domain-name-servers 8.8.4.4;

#deny unknown-clients;


subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.19;
}
and this works but it doesn't assign IP addresses obviously. It has had me stumped for some time now.

I should add that the first conf file assigns IP addresses when a client requests one but not the one I want them to have. The network comes up and runs, that's probably why the log shows no errors, and the mac addresses match in the log to the one listed in the conf file. There has to be something wrong in the conf file. The dhcpd server works. It assigns IP addresses.

I have been pulling my hair out over this for months.

Last edited by argon99; 07-02-2011 at 10:35 PM.
 
Old 07-02-2011, 11:36 PM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Took a closer look at your config file. The first static is out of range.

Quote:
host UNBT {
hardware ethernet 00:15:6D:AD:xx:xx;
fixed-address 192.168.1.20;
}
192.168.1.20 is outside of your range

Quote:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.19;
}
 
Old 07-04-2011, 01:45 AM   #5
argon99
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by lazydog View Post
Took a closer look at your config file. The first static is out of range.



192.168.1.20 is outside of your range
This might be the problem but UBNT is my Bullet2hp From ubiqity: http://www.ubnt.com/bullet It works great I recommend it to anybody that needs wireless access. I have it set up with a static address of 192.168.1.20 . wanted it to have a static address now that might be a problem. I will comment it out and see what happens. that but might that kill the whole file. Non of the assignments work properly. It might be that the parser goes nuts when it sees it but the bullet never gets a request for that mac. I will try and drop it from the list and see what happens.

think I should add I started with just a hand full of machines and that entery didn't stop the assignments for the short list. but when I added all the boxes it stopped working.

When a wireless box wants an IP it goes through the Ap to the dhcpd server. The dhcp sever is a slackware macine. The wired client wants an IP it goes to the slackware server. None of the boxes get the correct IP, wired or wireless using thus conf file.

One thing I have noticed it in the man page they use addresses from a host file or a DNS server. If the above doesn't work I will set it up as a dhcpd conf abut if it gives a different addess I will locate the BULLET. I have filed an RMA for it. I have had it running for a few years and it has just developed a problem well after the current problem. It won't ping it'self but I can ping it. But it does work ac an AP.

currently it is the 3rd of july and I am a little bit buzzed and tired. If I do find out anyhing else I will it in Add it in. And by the way I Only post hard questions.

TIA


PS
There is something I think I should add. I was installing debian with a net install. The dhcpd server wasn't giving a proper dhcp response and wasn't excepted. The Debian install had to be run directly from the cable modem using the DHCP from my isp. Maybe the server I am using isn't completely standard compliant. Or my config file isn't correct!!

Last edited by argon99; 07-05-2011 at 01:53 AM.
 
Old 07-04-2011, 02:25 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by lazydog View Post
Took a closer look at your config file. The first static is out of range.



192.168.1.20 is outside of your range
That doesn't matter. The range is only for dynamic assignment.
 
  


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
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
dhcpd wrong ip lease? del_gr Linux - Newbie 6 10-24-2006 10:58 AM
whats wrong with dhcpd in 2006? nglbrkr Mandriva 0 01-31-2006 03:04 AM
Wrong netmask for dhcpd ? michaelsanford Linux - Networking 3 05-11-2005 10:15 AM
what's wrong with this dhcpd.conf? gsgleason Linux - Networking 4 10-26-2004 12:57 PM

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

All times are GMT -5. The time now is 09:40 AM.

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