LinuxQuestions.org
Help answer threads with 0 replies.
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 03-13-2008, 10:14 PM   #1
Lunixer
LQ Newbie
 
Registered: Dec 2007
Location: Washington, DC
Distribution: Fedora 10, openSUSE 10.2/10.3, CentOS 5.4, Ubuntu 8.10 LTS
Posts: 4
Blog Entries: 2

Rep: Reputation: 0
? dhcpcd and dhclient give me two different IP addresses; static IP while using DHCP


Hi, All.

I have been wrestling with DHCP on an openSUSE 10.2 box and am puzzled about some things.

Why does dhcpcd acquire one IP address from my network and dhclient acquire a different IP address from the same network with the same MAC?

Isn't there a way to force (or at least request) that a DHCP server give me a particular IP address while still using DHCP for nameservers, etc? I tried using "fixed-address" with dhclient but ended up going with dhcpcd because that gave me the IP address I have been using for a long time and I needed to keep it.
 
Old 03-16-2008, 02:14 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
How is DHCP service provided to your network? -- You ought to be able to assign fixed IP's by MAC address in the DHCP server.

Sorry, no answer to
Quote:
Why does dhcpcd acquire one IP address from my network and dhclient acquire a different IP address from the same network with the same MAC?
Puzzling... interesting... even a bit disturbing.
 
Old 03-16-2008, 03:28 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Well as this does have a reply at all now, but each DHCP client will store it's previous address details in it's own file. so when each one is used, it will request the last address it knew about form the dhcp server. if the dhcp server has no objections it will let it have it. it's not really the place of the dhcp server to insist on a certain address outisde of a MAC being hardcoded on the server side config.
 
Old 03-16-2008, 08:32 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Did I answer too fast?

I thought 3 days of no reply was enough.
 
Old 03-17-2008, 05:03 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
no no, i just don't reply without a 100% useful answer until someone else had.
 
  


Reply

Tags
dhclient, dhcpcd, opensuse


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
dhclient vs. dhcpcd GregLee Slackware 5 09-28-2011 04:00 AM
DHCP with static and dynamic addresses marozsas Linux - Networking 13 09-19-2007 05:11 PM
From DHCP back to static addresses energiza Linux - Networking 2 08-10-2006 12:57 PM
dhclient v. dhcpcd biojayc Linux - Wireless Networking 5 04-29-2005 08:34 PM
dhcpcd + dhclient issues.. Digital_Err0r Linux - Software 1 04-04-2004 08:09 PM


All times are GMT -5. The time now is 10:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration