Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If I uncheck and recheck "Enable Networking" in the Network Manager Applet 0.7.996 I would expect the wired network to disconnect (which it does) and reconnect (which it does NOT). So I tried
How do I stop and restart the network interface short of rebooting the machine?
For the 'buntus:
sudo /etc/init.d/networking restart
And it'll apply the conditions you have specified in your /etc/network/interfaces file, which is generally more reliable than using "Network Manager".
If you prefer the GUI, wicd is a very good replacement for NM, and I recommend it. You'll need to add the wicd repository to /etc/apt/sources.lst before you can install it.
Actually I did not open the network manager - at least when testing. I right click on the network icon uncheck "Enable Networking". The list goes away. I then right click again and check "Enable Networking". The network never comes back.
This works fine on the wireless connection on my netbook running Ubuntu 9.04. Just checked - it also works fine with a wired connection on the netbook.
I did notice that the wired connection is called "Auto eht0" on the netbook and ifdown --help states in part
Quote:
-a, --all de/configure all interfaces marked "auto"
So let me post this and try -a and also see if I can figure out if my desktop eth0 is "auto"
OK, so it seems that ifdown and ifup are not the proper command. So I tried your suggestion tredegar. Here is what I have experienced.
I unchecked then rechecked Enable Networking then ran the buntu command. The network never came back until I rebooted.
I made a change to "Wired connection 1" with the Network Manager applet then ran the buntu command. The change was not recognized. I did see this on the first execution of the command after reboot.
Quote:
[sudo] password for ken:
* Reconfiguring network interfaces... Ignoring unknown interface eth0=eth0.
[ OK ]
Subsequent times it does not complain about eth0(?)
And my /etc/network/interfaces file contains
Quote:
auto lo
iface lo inet loopback
no eth0
So where is eth0 coming from? According to ifconfig it is the interface which I am using.
But where is it defined (or not properly defined)? Interestingly the entry in the Network Connections dialog shows "Network Connection 1" - my wired connection - as Last Used "never". However, Network Connection 1 is where I have defined the static IP address of the machine and it does in fact get that IP address.
ifconfig will show me the IP address I assign. However, when I changed the IP address to something different than Network Manager had (for testing) it killed the connection pending a reboot.
Well - enough of this horse manure - I tested Network Manager on Lucid Lynx alpha 3 and it works as expected. I hope Canonical leaves it alone when they go into production.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.