#1  
Old 15th October 2006, 18:50
KenKnight KenKnight is offline
Senior Member
 
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default Debian: Odd IP address problem

Hi all,

How bout this for strange. I am rebuildling one of my servers from scratch and I put the following into the interfaces file;

===========================
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.10.11
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
mtu 1450


=============================

Then I issue a networking restart. This lasts about 10 mins and then the interface reverts back to a DHCP address.

Anybody have any suggestions?

************EDIT************

Not sure what was causing it, but it has stopped. Amazingly it did it about 10 or 12 times.
Thanks,
Ken

Last edited by KenKnight; 16th October 2006 at 03:45.
Reply With Quote
Sponsored Links
  #2  
Old 10th November 2006, 10:35
dave_n_finch dave_n_finch is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Same Problem

I am having the same problem. the only difference is that i am using ubuntu 6.06 ITS.

Anybody got any ideas??

Thanks
Reply With Quote
  #3  
Old 11th November 2006, 16:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in /etc/network/interfaces? What's the output of
Code:
ifconfig
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 13th November 2006, 15:52
dave_n_finch dave_n_finch is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

Thanks for the reply. The problem has gone away - a simple reboot seems to have sorted it!

/etc/network/interfaces is set to use a static address and ifconfig was showing the address from the DHCP server.

/etc/init.d network restart would change the IP address to the static address (and ifconfig would confirm this) but after about 5-10 mins it would go back to the DHCP address.

I am always very hesitant to suggest that something is a bug when i don't have in depth knowledge of the intended / expected behavior but this does seem to me to indeed be a bug. In any case hopefully this thread will help out anybody that has a similar problem with Debian or Ubuntu.

Dave
Reply With Quote
  #5  
Old 13th November 2006, 17:48
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 138
Thanks: 7
Thanked 1 Time in 1 Post
Default

I am using DHCP on my LAN and have setup RESERVED addresses for my servers. I have a Firewall/router and have been using port forwarding on it direct traffic to the respective machines/ports.

I've been using this method for a couple years on my Windows domain controller, LAN Printer, and Windows workstations. It's also been working fine for me with my Debian server over the last 2 months.

I know some would argue against it, but it's been fine for me.

Cheers,
Nap
Reply With Quote
  #6  
Old 20th November 2006, 19:34
Jaypoc Jaypoc is offline
Junior Member
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have 2 Ubuntu 6.06 LTS servers I recently installed as Virtual Machines under VMWare Server 1.0 that do this. When I restart networking the IP used by the servers is the assigned IP, but about 20 to 30 minutes later, the IP reverts to the originally assigned DHCP IP address.

My /etc/network/interfaces shows:

-- --
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.10.40
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
-- --

The second VM has the IP of 192.168.10.41. They both revert back to 192.168.10.193 and 194. Sometimes WHILE I'm logged in via SSH. The connection will freeze on me, and when I log back in at the console or check the VMWare mui, I can see the IP addresses changed.

ipconfig shows the DHCP ip address.
Running /etc/init.d/networking restart restores the Static IP

The host system (running VMWare) is also Ubuntu 6.06LTS and its IP remains static all the time.

I'm going to try a hard-reboot and see if that works when I get home tonight (of the main host PC)

Any other ideas/suggestions?
Reply With Quote
  #7  
Old 20th November 2006, 22:30
Nap Nap is offline
Senior Member
 
Join Date: Oct 2006
Posts: 138
Thanks: 7
Thanked 1 Time in 1 Post
Default

Check the duration of the DHCP IP lease?
Reply With Quote
  #8  
Old 20th November 2006, 23:54
Jaypoc Jaypoc is offline
Junior Member
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Check the duration of the DHCP IP lease?
What's the thought process behind checking that?

The server is not configured for DHCP so there shouldn't be anyDHCP lease. The question is not how long will it be assigned the IP, but why is it being assigned an IP when configured for static IP to begin with.

Is it possible for a DHCP server to force an IP change on a NIC somehow?

The gatway (192.168.10.1) is my DHCP server/NAT Router (Running M0n0wall)
The hosts IP is 192.168.10.20 and is static and does not change
The virtual machines IPs are set static to 192.168.10.40 and 192.168.10.41 but revert to 192.168.10.192 and 192.168.10.193 respectively.
Reply With Quote
  #9  
Old 21st November 2006, 15:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

This shouldn't happen if you have static IP addresses in /etc/network/interfaces.
Maybe a cron job is changing your network settings?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 21st November 2006, 16:55
Jaypoc Jaypoc is offline
Junior Member
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Seems rebooting the virtual server was enouh. It's been about 12 hours and the IP has not gone back to a DHCP address. Weird! I thought I did reboot it after configuring it. Maybe not.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
The Perfect Xen 3.0 Setup For Debian - NAT problem amussa HOWTO-Related Questions 9 28th September 2006 21:27
debian postfix mail problem stlshawn General 9 3rd April 2006 12:05
Problem installing 2.2 on Debian Sarge 3.1 bwrob Installation/Configuration 3 3rd March 2006 23:40
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 18:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.