Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I'm running Mint x86_64 in VirtualBox. I installed a few Python libraries for a project I'm starting, when my networking broke. I rebooted the machine and was unable to ping anywhere but localhost. I've even tried manually setting a static IP to no avail.
I checked my routes and noticed the 169.254.0.0 route in place; after some research, it looks like a fallback local network if DHCP can't be reached. Could that be an issue? Here's some relevant information:
user@VirtualBox ~ # dmesg | grep "eth1"
[ 13.422927] <30>udev[399]: renamed network interface eth0 to eth1
[ 13.712916] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[ 13.718393] ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 13.719113] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 24.174060] eth1: no IPv6 routers present
I know that it's not my local network because my other VM's and systems work fine, and I don't have any static IPs setup on my gateway either. tcpdump shows a very low amount of i/o network traffic, most of it ipv6 or ARP requests (which it's not responding to). It might also be worth noting that prior to this incident my interface was eth0, but changed to eth1.
I am also running Ubuntu under VM and it works great with a bridged connection. Looking at your config file here are the changes that you can make.
Edit /etc/network/interfaces and comment out the lines as follows (I do not have eth entry even in this file using NetworkManager instead):
Code:
auto lo
iface lo inet loopback
#auto eth1
#iface eth1 inet dhcp
Save the file and exit.
Now, navigate to System --> Preferences --> Network Connections.
In Network Connections under wired tab you will find your ethernet card listed. Click on Edit. Make sure "Automatically Connect" checkbox is ticked. Next, navigate to IPv4 tab and see it is set to DHCP and at the bottom available to all users is ticked. If you are not using IPv6 (which I don't think you are) then under IPv6 tab select Ignore under method. Click on apply and reboot the system. See if that resolves your issue.
Make sure that you take a backup of /etc/network/interfaces before editing. Just incase we need that later
Strangely I had all the settings already configured that you'd suggested. I commented out the eth1 lines in interfaces and rebooted. I took down my interfaces, and saw this:
Code:
user@VirtualBox ~ # /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... Ignoring unknown interface eth0=eth0.
[ OK ]
I went to open up my connections tab again, and eth0 automatically reconnected, and I was finally able to connect and successfully ping. I'm not sure what was causing the strange clash, but it seems to be fixed now!
Thanks for the help!
[edit]: It looks as though eth0 disappeared again after reboot. /etc/init.d/networking restart and ifconfig eth0 up won't bring the interface up. Any other suggestions?
[edit]: further reboot and it's back. There's definitely a clashing of interfaces somewhere; rebooting alternates whether it comes up or not. Sometimes it's eth1, sometimes it's eth0.
[edit 3]: Here's the connection information of my current connection (which does not work):
I would suggest you to either use files or NetworkManager to manage the network. Check the following location for any traces of eth1:
Code:
/etc/NetworkManager/system-connections
If you find anything related to eth0 and eth1 then rename the eth1 file and keep eth0 file. Make sure you either reboot the system or restart the network using NetworkManager.
Last edited by T3RM1NVT0R; 02-19-2012 at 05:51 PM.
There was two eth0 files in there; an Auto eth0 and an eth0. I removed the Auto eth0 and rebooted. eth1 came up (even though I can't find eth1 anywhere...). I took it down, then NetworkManager brought up eth0 and now I'm connected. BUT - ifconfig shows that it's actually eth1 up! Is there somewhere else that eth1 could be set?
If I try and bring up eth0 (ifconfig eth0 up) it tells me that no device exists.
[edit]: Nothing a reboot can't fix. eth1 no longer shows up, but eth0 shows the same symptoms. /etc/init.d/networking restart gives me the 'Ignoring unknown interface eth0=eth0"
[edit]: Spoke too soon! eth1 is back. There has to be something else conflicting with my drivers.
Check in /etc/udev.d/rules/70-persistent-net.rules there is a line with the corresponding mac and that is pointing to the right ethX. If you change the file and need to check it, you have to stop the network and rmmod the module and load it again, or reboot.
There was in fact an entry for eth1 in there; I removed it, rmmod'd and rebooted, and the entry was brought back. I don't have a 75-persistent-net-generator.rules anywhere on my machine (find / -iname "75-persistent-net-generator.rules"). What else could be generating that entry?
I seem to be getting 2 different IP addresses depending on which interface is brought up, where one works and the other doesn't.
Code:
user@user ~ $ cat /etc/udev/rules.d/70-persistent-net.rules
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:34:d6:95", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:32:c7:2a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
and then comment out the ethernet which does not work for you. For example if eth1 does not work for you then edit it as follows:
Code:
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:34:d6:95", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:32:c7:2a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Reboot the system and see if you get the correct configuration.
It will be good if you make a backup of this file before editing just in case you need it later for your reference / safety if something goes wrong.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.