Comment 0 for bug 995165

Revision history for this message
David (djs203) wrote :

To reproduce:
- Download ubuntu-12.04-alternate-amd64.iso, sha256sum: f8d54df0afbab6a6248f6e2bcab3e68f01c04d52b0bb1f889d880ad3bc881ccb
- Burn it to a USB flash drive from a completely up-to-date Ubuntu 10.04 LTS with UNetbootin
- Install on a machine with both IPv4 and IPv6 connectivity
- Log in to the newly installed system

Current behaviour:
- There is no IPv4 connectivity
- NetworkManager doesn't show the wired interface in its dropdown

Expected behaviour:
- There is IPv4 connectivity
- NetworkManager does show the wired interface in its dropdown

Thoughts:
I suspect this is because during the install my /etc/network/interfaces was created like so:
---BEGINS---
# 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

# The primary network interface
auto eth0
iface eth0 inet dhcp
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto
---ENDS---

Then network-manager-0.9.4.0/debian/ifblacklist_migrate.sh mutates the file to comment out a single line like so:
#NetworkManager#iface eth0 inet dhcp

i.e. the line
iface eth0 inet6 auto
remains intact

This means that the /etc/network/interfaces file gives me IPv6 connectivity but not IPv4 connectivity. Furthermore, because there is an uncommented iface eth0 inet6 line, NetworkManager doesn't show me the interface in its dropdown.

To fix:
- The regular expression needs to be changed so that the iface eth0 inet6 auto line is also commented out