LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-24-2012, 09:47 PM   #1
dontworryaboutme
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
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?
 
Old 03-24-2012, 11:38 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
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.
 
Old 03-25-2012, 12:05 AM   #3
dontworryaboutme
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
@Skaperen

It's the server verson. But ive installed x11 on it.
 
Old 03-25-2012, 05:42 AM   #4
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 321

Rep: Reputation: 81
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)
 
Old 03-25-2012, 06:38 AM   #5
tech_soul8
Member
 
Registered: Aug 2011
Posts: 75

Rep: Reputation: Disabled
Post output of /etc/network/interface
 
Old 03-25-2012, 12:02 PM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by dontworryaboutme View Post
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.
 
Old 03-25-2012, 01:41 PM   #7
dontworryaboutme
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-25-2012, 03:18 PM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Have you logged in to it via its desktop?
 
Old 03-30-2012, 04:32 PM   #9
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Program to assign globa lIPv6 address and bind() to the previously assigned address. mwnn Linux - Networking 2 10-07-2010 02:29 AM
How can I tell if my Linux server has a static or dynamic IP address assigned to it? RBMike Linux - Newbie 11 12-15-2009 05:05 PM
[SOLVED] dhcp-client get assigned a network address instead of a regular IP address kenneho Linux - Networking 3 11-27-2009 03:43 AM
Set IP address to static from DHCP assigned address jborn Linux - Networking 4 02-02-2007 08:38 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

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

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