LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network settings gets erased in Linux mint 5 (https://www.linuxquestions.org/questions/linux-newbie-8/network-settings-gets-erased-in-linux-mint-5-a-700529/)

akki 01-28-2009 10:20 AM

Network settings gets erased in Linux mint 5
 
every time i shutdown the laptop and then switch it on again the network settings gets erased completely.I have been using Linux Mint 5 for over six months and this is the first time this kind of problem has occured.the os is completely up to date.
pls help as typing all the settings always is just getting torturous
thanks

rylan76 01-30-2009 01:37 AM

Quote:

Originally Posted by akki (Post 3424124)
every time i shutdown the laptop and then switch it on again the network settings gets erased completely.I have been using Linux Mint 5 for over six months and this is the first time this kind of problem has occured.the os is completely up to date.
pls help as typing all the settings always is just getting torturous
thanks

Hmm - "completely up to date"

Have you recently auto-updated your install or used some kind of package manager to "update" the system?

Quote:

pls help as typing all the settings always is just getting torturous
Ok, so you DO have networking, you only have to manually start networking services each time you boot the system?

Note that you can place any network startup commands (or any other stuff you want run each time at startup) into the file /etc/rc.local (at least, on Fedore Core 6, you can)

For example, my network startup commands are

Code:

/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.254.255.255 up
/sbin/route del default
/sbin/route add default gw 10.0.0.2 eth0

so, what I did was to place these commands inside my /etc/rc.local file.

So, each time my system starts, these commands are automatically executed, and I always have networking up.

I suspect that since you refer to the system "being up to date" you auto-updated at some time in the past, and this has broken your setup or some of your configuration files - which is why your system suddenly started coming up with no networking.

Note that if you auto-updated again, the above change (putting your network start commands in /etc/rc.local) might AGAIN be broken, IF the aut-update changes /etc/rc.local as part of the "auto update".

For my part, I never use any form of auto update, exactly in order to avoid problems precisely like the one you ran into... e. g. some stuff works 100%, but after an "auto update" (which is supposed to be a good thing, but usualy isn't!) some stuff usually are broken... so I NEVER do an "auto update"...


All times are GMT -5. The time now is 06:45 PM.