Basically my network won't start. Can't use wired connections.
To make it a further brain-scratcher, when booting into recovery, and using the network console, the network comes up and works. Outside of recovery nothing.
As far as I can tell no settings changed between powering off and on since last time it worked, except for an automatic kernel upgrade. Using an older kernel does not seem to help.
Also this hardware configuration worked perfectly fine for over a year with kernel upgrades and all. Network was always automatic.
Information for follow up questions...
Network manager is running.
Strangely enough, my network interface was never started, nor was DHCP. Where in the configuration can I find this?
To manually resolve the problem:
sudo ifconfig eth0 up
sudo /etc/dhclient
What could have happened in my config to not make this work automatically.
Info gathered:
> lspci | grep net
> 6:00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
Contents of /etc/network/interfaces
auto lo
iface lo inet loopback
After adding
auto eth0
iface eth0 inet dhcp
the eth0 interface comes up, but the dhclient
does not.
--
The problem re-occurred when waking up from sleep.
You are likely missing the line for this in the interfaces file. Open
/etc/network/interfaces
and check if there is a line foreth0
If not add the following:This will add the
eth0
interface - and use DHCP on boot and wakeup.If you're still not getting DHCP response you may also need to add dhcp back into defaults:
sudo update-rc.d dhcp3-server defaults
What does
ifconfig -a
show when it's not working? Is there aneth0
? If it's not, I'd check the modules blacklists/etc/modprobe.d/blacklist*
. I would have expected the recovery console to honour these though so moving on...If you do have an interface, it could be some dodgy config inside network-manager. Recovery mode just uses some defaults IIRC so I'd open up the network settings (right click the applet, click edit connections) and check a few things:
If
ifconfig -a
isn't showing aneth0
device, it could be something bizarrely hardware specific. What doeslspci | grep net
show? If nothing, do you know what the network chipset is?Could
pm-powersave
be the cause of your problem? My answer to How to connect wirelessly in a cafe with 11.04 might applyI've installed dhcpcd5 and it worked for me.
sudo apt-get install dhcpcd5