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 08-03-2005, 08:50 AM   #1
csdibiase
LQ Newbie
 
Registered: Oct 2003
Location: Cleveland, OH
Distribution: SuSE 9.3
Posts: 6

Rep: Reputation: 0
Question DHCP client gets wrong IP on reboot (SuSE 9.3)


I just replaced a Fedora Core 1 machine with a SuSE 9.3 machine for use as a small server and a backup workstation. (it's also my experimental machine to see if I can at long last fully divorce myself from windows)

On my network I'm using a Netgear WGR614v5 router as a DHCP server. In the router's dhcp server configuration I've reserved 192.168.1.5 for the SuSE 9.3 machine. When I reboot the machine dhcpcd requests and recieves the next availible IP on the network in spite of the routers IP reservation.

For example if the computer has 192.168.1.5 and I reboot it comes back up as 192.168.1.6. If I reboot again it comes up as 192.168.1.7. Id I force dhcpcd to release it's cached address with the -k option then rerequest the IP I once again get the reserved 192.168.1.5.

The funny thing is this machine has spent time running WinXP, and never had a problem requesting the right IP address on reboot before, so I'm inclinded to think that at least the router itself is functioning.

For what it's worth I'm running the latest version of firmware in the router (V1.0.7_1.0.6) and dhcpcd 1.3.22pl4-202.2 (installed via the built in system updater)

Any thoughts on how I can get this machine requesting the correct IP address on each reboot, or at least some places to check to see where it might be going wrong?
 
Old 08-04-2005, 03:01 AM   #2
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Have a look at the config files in /etc/sysconfig/network - there are some default confs as well as card specific ones. You can put any commands you like from any conf in the card-specific confs and they will override the defaults. They're all well-documented so you you should find what you want.

Personally I'd recommend using a static IP address if it's going to be a server.
 
Old 08-04-2005, 06:36 AM   #3
csdibiase
LQ Newbie
 
Registered: Oct 2003
Location: Cleveland, OH
Distribution: SuSE 9.3
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks I'll take a look at that...

The machine is esentially using a static address. My router is configured to reserve the .5 address for the MAC of my SuSE machine. If I set up my network that way I never have to worry about my linux machine having invalid or out of date DNS server information. Since I rely on the DNS server from my ISP you never know when those might change without warning.

Looking at the config file for DHCPCD I think the part that's messing me up is DHCLINET_RELEASE_BEFORE_QUIT="no". I have a feeling (though mind you I have no proof) that since it doesn't release on shutdown, the router thinks the IP is still in use and assigns the next availible IP to the machine rather than the reserved address.

I'll give it a tweek and a few reboots tonight when I have time and see how that works.
 
Old 08-07-2005, 11:15 PM   #4
csdibiase
LQ Newbie
 
Registered: Oct 2003
Location: Cleveland, OH
Distribution: SuSE 9.3
Posts: 6

Original Poster
Rep: Reputation: 0
Well ... that didn't work after all. It really seems like dhcpcd doesn't really release it's IP, or at the very least really doesn't like the way that the netgear router reserves IP addresses. Very annoying. I really don't want to have to start using a static IP but I may break down and go that route
 
  


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
Trying to setup up SUSE 9.3 as DHCP, But Client recieves no IP Th3James Linux - Networking 6 10-08-2005 08:23 AM
DHCP Suse 9.2 Server wont route pings back to client mikfig Linux - Networking 2 01-12-2005 03:13 PM
Can't get IP on my SuSE client from Win2K Server DHCP... cdavidson Linux - Networking 1 06-19-2004 12:13 PM
ADSL modem & SUSE 9.0 DHCP client Embedded Linux - Networking 1 01-24-2004 05:48 AM
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

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

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