LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ip of my server changes, seemingly at random (http://www.linuxquestions.org/questions/linux-networking-3/ip-of-my-server-changes-seemingly-at-random-189729/)

esteeven 06-04-2004 02:10 PM

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??

MS3FGX 06-04-2004 02:14 PM

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.

XTF 06-04-2004 03:16 PM

But Windows keeps the same IPA during reboots. Is there a way for Linux (Debian) to do the same?

MS3FGX 06-04-2004 03:58 PM

Yes, set it as static...

XTF 06-04-2004 04:31 PM

Isn't there another solution that still uses DHCP, so that the system continues to work without manual changes in another network environment?

inspiron_Droid 03-09-2007 10:41 PM

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.

gilead 03-09-2007 10:53 PM

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.

Slim Backwater 03-10-2007 08:18 AM

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.


All times are GMT -5. The time now is 12:32 PM.