Comment 66 for bug 279262

Revision history for this message
Martin G Miller (mgmiller) wrote : Re: [regression] devices/interfaces not set to "auto" in /etc/network/interfaces get blacklisted in 0.7 (intrepid) but were managed in 0.6 (hardy and before)

Here is an update. I reexamined my /etc/network/interfaces and I found a lot of blank lines that obscured the "phantom eth1 info"

***********The file contents starts here****************************
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.

iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0

iface eth1 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1

auto eth1
********The file contents ends here*************

As you can see there were a lot of blank lines that I missed the first time around. Also, it defined 2 nics that had the same IP address. I'm lucky it worked at all.

when I removed the blank lines and commented out all the info at the end of the file and restarted the computer, I had my network manager applet back in the tray and I could configure my one and only nic. I now have 2 wired networks listed. One is the default DHCP and the other is the static IP that I wanted to run. It switches back and forth between them without problems. I have checked the static one to connect automatically and unchecked that for the DHCP connection.

It seems to work fine now.

The big block of blank lines was added during the Hardy to Intrepid upgrade. I don't know how the 2 nics with same IP address got in there.