LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-04-2004, 02:10 PM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
ip of my server changes, seemingly at random


My server local ip keeps changing --- one day it is 192.168.1.104 and a week later I need to change the port forwarding on my router to 192.168.1.103. My desktop retains the same ip. Is there something on the server that might be releasing the ip and requesting a new one??

just a thought --- often the problem seems to coincide with this http://www.linuxquestions.org/questi...threadid=18651

Any ideas??

Last edited by esteeven; 06-04-2004 at 02:11 PM.
 
Old 06-04-2004, 02:14 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Your router is giving out dynamic IP addresses that change from time to time.

Assign the server a static IP, and you won't have to worry about it.
 
Old 06-04-2004, 03:16 PM   #3
XTF
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
But Windows keeps the same IPA during reboots. Is there a way for Linux (Debian) to do the same?
 
Old 06-04-2004, 03:58 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Yes, set it as static...
 
Old 06-04-2004, 04:31 PM   #5
XTF
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
Isn't there another solution that still uses DHCP, so that the system continues to work without manual changes in another network environment?
 
Old 03-09-2007, 10:41 PM   #6
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
I know that in the lan ip setup section of my net gear rp614v3s browser based set up program thaer is asection in which I can reserve Ip addresses for each machine on my Lan.

So Id suggest that you go to your routers web browser based configuration utility and reserve an ip addrees for the spacific hardware mac address of the servers nick card.
 
Old 03-09-2007, 10:53 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Are you using the -k switch when shutting down dhcpcd? This will send a SIGHUP to the dhcpcd process which will cause a DHCP_RELEASE to be sent to the server. If you don't want that to happen, try removing the -k from your shutdown script.
 
Old 03-10-2007, 08:18 AM   #8
Slim Backwater
Member
 
Registered: Nov 2005
Distribution: Slackware 10.2 2.6.20
Posts: 68

Rep: Reputation: 15
Quote:
Originally Posted by gilead
Are you using the -k switch when shutting down dhcpcd? This will send a SIGHUP to the dhcpcd process which will cause a DHCP_RELEASE to be sent to the server. If you don't want that to happen, try removing the -k from your shutdown script.
I second this solution. Windows doesn't release the IP back the the DHCP server on shutdown, so the DCHP server still has it set as assigned. Your Linux box is probably releasing the IP back to the DHCP Server on shutdown, so it will get a random free one on the next boot.

This Debian bug summary from 2006-11-23 seems to be relevant:
http://marc.theaimsgroup.com/?l=dhcp...8528918928&w=2

Specifally these bugs:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=246621
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=247812
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295064

HTH.
 
  


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
Random Server Crashes teamchachi Linux - General 2 10-20-2005 08:32 AM
Random Server Freezes deviance99 Linux - Hardware 11 12-02-2004 06:28 PM
9.1 installation freezes at seemingly random points mustardseed Slackware - Installation 2 03-02-2004 05:25 PM
Seemingly random hostname changes xanthumn Linux - Networking 2 01-21-2003 03:30 AM

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

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