touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #25764
[Bug 1352255] Re: Impossible to configure network interface with only IPv6 address
I've verified fix-released on utopic. In 2 ways:
a.) set /etc/network/interfaces with:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 static
netmask 64
address 2001:db8::1:3
And set a local 'NoCloud' datasource, and then booted
the system to see 'ip -6 addr' shows the configured interface.
b.) verified that bouncing the sysctl settings does not deconfigure addresses.
$ vals() { for i in net.ipv6.conf.all.use_tempaddr net.ipv6.conf.default.use_tempaddr; do [ -n "$1" ] && { sudo sysctl $i=$1 || return; } || sysctl $i; done; }
$ vals 0
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0
$ sudo ip -6 addr del 2001:db8::1:3/64 dev eth0 &>/dev/null;
$ sudo ip -6 addr add 2001:db8::1:3/64 dev eth0
$ vals 2
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
$ ip -6 addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 2001:db8::1:3/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fefd:d570/64 scope link
valid_lft forever preferred_lft forever
$ vals 0
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0
$ ip -6 addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 2001:db8::1:3/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fefd:d570/64 scope link
valid_lft forever preferred_lft forever
$ uname -r
3.16.0-21-generic
** Changed in: ifupdown (Ubuntu Utopic)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1352255
Title:
Impossible to configure network interface with only IPv6 address
Status in “ifupdown” package in Ubuntu:
Fix Released
Status in “ifupdown” source package in Trusty:
Confirmed
Status in “ifupdown” source package in Utopic:
Fix Released
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/interfaces looks like this:
# 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:188:444::55
netmask 64
gateway 2001:610:188:444::1
autoconf 0
privext 0
accept_ra 0
dns-search terena.org
dns-domain terena.org
dns-nameservers 2001:610:1:800a:192:87:106:106
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:56ff:fe95:42ab/64 Scope:Link
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
collisions:0 txqueuelen:1000
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
collisions:0 txqueuelen: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
collisions:0 txqueuelen: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:56ff:fe95:42ab/64 Scope:Link
inet6 addr: 2001:610:188:444::55/64 Scope:Global
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
collisions:0 txqueuelen:1000
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
collisions:0 txqueuelen: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!!!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1352255/+subscriptions