LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-01-2004, 06:29 AM   #1
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
Debian strange behavior about network config


Ok, I am an experimented Debian users, using it since 1 years full time, so no "n00b" question here.

Here's the case : yesterday, I updated my whole Debby box using SSH... soon, the connection crashed. I was unable to reach the box by any ways so I thought "What the hell, it crashed?". So I rebooted the damn thing.
It wasn't crashed, in fact I find later when I moved from my desk to go take a look at the box that Eth0 was using the old useless ip 195.164.92.54. That's is really strange since this is an ip I was using loong loong ago, something like 1 years ago and that have been changed to... ehh... I'll say 192.168.0.1.
So I looked deeper and I found that the file /etc/interfaces have been changed by Debian during the update. My "good" files still exists and was renamed "interfaces.1".
This is very strange, since 195.164.92.54 wasn't used for a while and was removed from any config file, it is just like Debian saved somewhere the network first configuration (the one that have been done during the installation), not a in a common config files, and then used this configuration during the update.
I am not very sure what package caused this old config to wake up, but in updated package are dpkg and dpkg-dev, that are both very suspicious to me

This is not as big trouble, however I don't want to see this box offline each time I update it. If someone could tell me what caused that and why, I'll be verr pleased
 
Old 04-01-2004, 11:03 AM   #2
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Did you add the new IP (192.168.0.1) using ifconfig at some point, or did you add the settings to for new IP (192.168.0.1) to /etc/network/interfaces?

If you just added it with ifconfig its not going to save the settings. If durring the update it had the restart networking it would have went back to whatever was in /etc/network/interfaces and not what was in memory from the ifconfig commands.
 
Old 04-01-2004, 11:41 AM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
One year doesn't mean you're an experimented user even if you use it all the time. I've been using only linux/Unix systems only for 4/5 years and it doesn't make me an experimented compared to a 10 years unix man even if i really have few problems to hassle with.

if you have installed something like etherconf or netenv(something like that to select the network configuration), it can modify the interfaces file.And if you don't customize it after another apt-get dist-upgrade it can be modified again. This is the only situation that already happened to me and cross my mind.

i assume you were apt-getting/install/dist-upgrade a little bit before it arrived in your ssh session.

Last edited by mrcheeks; 04-01-2004 at 11:42 AM.
 
Old 04-01-2004, 12:07 PM   #4
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 45
Quote:
Did you add the new IP (192.168.0.1) using ifconfig at some point, or did you add the settings to for new IP (192.168.0.1) to /etc/network/interfaces?
If you just added it with ifconfig its not going to save the settings. If durring the update it had the restart networking it would have went back to whatever was in /etc/network/interfaces and not what was in memory from the ifconfig commands.
As I said I know how to use/manage Linux, of course settings were in /etc/network/interfaces since a long time. The box rebooted some time and everything was fine. There's no such ifconfig error.


mrcheeks, I haven't installed any of these apps willing, but maybe this come with default debian installation. I like to configure my system by hand instead of by script, so... However, if these package came with default Debian, well...
The trouble, still, is that I am scared to see this happen again. I have done a massive search (grep -R ... ...) on the system to find what package might have done this and where was his configuration, but I find nothing yet. Is it possible that such script have no config file, I mean that the old "dangerous" ip is saved somewhere in a binary file I can't modify?

Last edited by Half_Elf; 04-01-2004 at 12:13 PM.
 
  


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
strange net config behavior - interesting experience... binchin Red Hat 0 09-05-2005 07:07 PM
Network config debian illicit Linux - Newbie 4 11-30-2004 07:31 PM
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM
strange behavior abhijit Linux - General 3 07-09-2003 11:25 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration