Impossible to configure network interface with only IPv6 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Confirmed
|
Medium
|
Unassigned | ||
Utopic |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As it says on the tin.
I'm unable to configure my Ubuntu 14.04 VM to have only an IPv6 address on boot-up.
Dual stack works fine.
My /etc/networking
# 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 inet6 static
address 2001:610:
netmask 64
gateway 2001:610:188:444::1
autoconf 0
privext 0
accept_ra 0
dns-search terena.org
dns-domain terena.org
After boot-up there is only a link-local address:
root@trusty-test:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:95:42:ab
inet6 addr: fe80::250:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:101 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:6644 (6.6 KB) TX bytes:2132 (2.1 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:240 errors:0 dropped:0 overruns:0 frame:0
TX packets:240 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:18192 (18.1 KB) TX bytes:18192 (18.1 KB)
However, if I manually ifdown/ifup the interface, then things start working:
root@trusty-test:~# ifdown eth0
root@trusty-test:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:240 errors:0 dropped:0 overruns:0 frame:0
TX packets:240 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:18192 (18.1 KB) TX bytes:18192 (18.1 KB)
root@trusty-test:~# ifup eth0
Waiting for DAD... Done
root@trusty-test:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:95:42:ab
inet6 addr: fe80::250:
inet6 addr: 2001:610:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:894 errors:0 dropped:0 overruns:0 frame:0
TX packets:652 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:168407 (168.4 KB) TX bytes:95052 (95.0 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:288 errors:0 dropped:0 overruns:0 frame:0
TX packets:288 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:21792 (21.7 KB) TX bytes:21792 (21.7 KB)
FYI, I have many 12.04 LTS VMs that work fine with the same configuration.
Many thanks!!!
tags: | added: trusty |
Changed in ifupdown (Ubuntu Trusty): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
The workaround for now is to configure an IPv4 address:
auto eth0
iface eth0 inet static
address 169.254.199.199
netmask 255.255.0.0
iface eth0 inet6 static 188:444: :55
dns-nameserver s 2001:610: 1:800a: 192:87: 106:106
address 2001:610:
netmask 64
gateway 2001:610:188:444::1
autoconf 0
privext 0
accept_ra 0
dns-search terena.org
dns-domain terena.org
Then remove it later from /etc/rc.local:
/sbin/ip addr del 169.254.199.199/16 dev eth0
exit 0
Not pretty but it's the only way right now to have my host properly configured ;-)