LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-07-2010, 04:36 AM   #1
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 33
dhcp fixed address not working


I have a slackware server running ISC dhcpd and bind, and I want to give a dual boot XP / Ubuntu client a fixed address based on its MAC. I added a host stanza to my server's dhcpd.conf:

Code:
host fixed {
hardware ethernet 00:1f:c6:88:8b:75;
fixed address 192.168.1.200;
}
I restarted bind and dhcpd, restarted the client's networking, and it still requests (and receives) its previously leased address, which is not the fixed address I want it to get. I tried dhclient -r to make the client release the old address, didn't help. On networking restart it still gets offered the old (wrong) address. Could it be that dhcpd somehow hangs on to the old lease even after the client sent a DHCPRELEASE?

How do I tell dhcpd to forget about an old lease, and how do I make dhcpd hand out the fixed address (and only that address) I specified for a given MAC, regardless of what the client requests?

Last edited by [GOD]Anck; 06-07-2010 at 05:15 AM.
 
Old 06-07-2010, 04:52 AM   #2
bzyk
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Debian, Slackware
Posts: 42

Rep: Reputation: 15
Did you restarted dhcpd?
 
Old 06-07-2010, 04:52 AM   #3
Thom1b
Member
 
Registered: Mar 2010
Posts: 70

Rep: Reputation: 30
Try :
Code:
host myslack { hardware ethernet 00:11:22:33:44:55; fixed-address 192.168.0.100; }
 
Old 06-07-2010, 04:56 AM   #4
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bzyk View Post
Did you restarted dhcpd?
I did, several times. I even tried deleting /var/state/dhcp/dhcp.leases and restarting with an empty leases file, but it still hands out the old address.

(Oh, I see I wrote bind where I meant dhcpd, thus the confusion. Yes, I did restart /usr/sbin/dhcpd as well as bind and all networking configuration)

Quote:
Originally Posted by Thom1b View Post
Try :
Code:
host myslack { hardware ethernet 00:11:22:33:44:55; fixed-address 192.168.0.100; }
How is this different from what I have? Is it supposed to be all on one line?

Last edited by [GOD]Anck; 06-07-2010 at 05:09 AM.
 
Old 06-07-2010, 05:15 AM   #5
bzyk
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Debian, Slackware
Posts: 42

Rep: Reputation: 15
Hmm.. it's weird. show us all your dhcpd.conf (or your beginning dhcpd.conf with general rules).
 
Old 06-07-2010, 05:20 AM   #6
Thom1b
Member
 
Registered: Mar 2010
Posts: 70

Rep: Reputation: 30
Quote:
Originally Posted by [GOD]Anck View Post
How is this different from what I have? Is it supposed to be all on one line?
It's not "fixed address 192.168.1.200" but "fixed-address 192.168.1.200"
 
Old 06-07-2010, 05:25 AM   #7
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by Thom1b View Post
It's not "fixed address 192.168.1.200" but "fixed-address 192.168.1.200"
Ah, indeed it is.. and now it works. Silly little mistake.

Thanks!
 
  


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
Slackware 12.1: Fixed IP Address Not Working tronayne Slackware 7 05-20-2008 07:45 AM
DHCP Fixed IP Address confusion noir911 Linux - Server 1 03-23-2008 08:10 AM
dhcp.conf problem: host fixed-address declarations ignored lslade Linux - Server 0 03-05-2007 01:47 PM
DHCP: Problem in assigning fixed address to clients libregeek Linux - Networking 6 11-17-2005 11:59 PM
Fixed IP Address with DHCP dgreenbean Linux - Networking 9 09-19-2004 01:12 PM


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