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? |
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.
|
@Skaperen
It's the server verson. But ive installed x11 on it.
|
Hi!
You may try to Code:
ps aux | grep dhcp 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) |
Post output of /etc/network/interface
|
Quote:
|
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.
|
Have you logged in to it via its desktop?
|
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. |