IP address on static assigned ubuntu server keeps changing!
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.