LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP address on static assigned ubuntu server keeps changing! (https://www.linuxquestions.org/questions/linux-networking-3/ip-address-on-static-assigned-ubuntu-server-keeps-changing-936276/)

dontworryaboutme 03-24-2012 09:47 PM

IP address on static assigned ubuntu server keeps changing!
 
I have a computer on my network with a static ip assignment! The computer is a server running ubuntu 10.04 LTS and i set it to have a static IP! The problem is that after a while the ip changes to a different IP! I have everything set up correctly for static IP networking! Everything i use the command /etc/init.d/networking restart it corrects the problem and gives me the desired IP address! But after a while! It has a different IP address! The router i have is a apple airport extreme with DHCP enabled! I know how DHCP works and the computer has to send out an assignment request!
Is it possible that a daemond is sending DHCP assignment request every few hours and that is how it's changing! If so, How do i kill it? And if that is not the problem! What else can be the problem?

Skaperen 03-24-2012 11:38 PM

Not just possible, but it is almost certain that DHCP is running on the server and asking for an IP address. Are you running the server edition of Ubuntu, or a desktop edition? If you are running the desktop edition, logging in can start the network-manager which can run DHCP. There may still be something else.

dontworryaboutme 03-25-2012 12:05 AM

@Skaperen
 
It's the server verson. But ive installed x11 on it.

Celyr 03-25-2012 05:42 AM

Hi!

You may try to
Code:

ps aux | grep dhcp
and kill the client.
As a patch you may try to assign to the server's mac a static DHCP address. (Wich is a great way to set up a network imo)

tech_soul8 03-25-2012 06:38 AM

Post output of /etc/network/interface

Skaperen 03-25-2012 12:02 PM

Quote:

Originally Posted by dontworryaboutme (Post 4635556)
It's the server verson. But ive installed x11 on it.

Then it's effective a desktop edition with regard to this issue. The default desktop environment setups for {,k,x}ubuntu is to run network manager when logged in, and by default it will ask DHCP for an IP address and configure it. One option is to uninstall network manager. But if you want to leave it there for some reason, you could put the static IP on an alias interface which MAYBE it won't touch, or setup a bridge, etc.

dontworryaboutme 03-25-2012 01:41 PM

It seems to be working now!
 
Ok. I've waited overnight and it seems the ip address didn't change and it has the desired address! All i did yesterday was reboot the server and it seems to work fine! I haven't rebooted it for over a week.

Skaperen 03-25-2012 03:18 PM

Have you logged in to it via its desktop?

WizadNoNext 03-30-2012 04:32 PM

ceryl:
dhcp client do NOT contain dhcp in name, its name is dhclient

dontworryaboutme:
next time you'll have such problem use:
Code:

killall -s SIGTERM dhclient


All times are GMT -5. The time now is 01:22 PM.