Cant add multiple ipv6 addresses to an interface

Bug #617978 reported by Sebastian Kranefeld on 2010-08-14
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
ifupdown (Debian)
Unknown
Unknown
ifupdown (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: ifupdown

Ubuntu: 10.04.1 LTS
Kernel: 2.6.32-22-server (i386 & x86_64)
ifupdown: 0.6.8ubuntu29

Here The inital version of "/etc/network/interfaces"
-------------
auto eth0
iface eth0 inet static
        address 192.168.5.2
        netmask 255.255.255.0
        gateway 192.168.5.1
iface eth0 inet6 static
        address 2001:db8::a
        netmask 64
-------------

You cant add multiple ipv6 adresses directly to eth0, so i created a new IF:
-------------
auto eth0:0
iface eth0:0 inet6 static
        address 2001:db8::b
        netmask 64
-------------

After a "/etc/init.d/networking restart" i'll get an Error:
-------------
SIOCSIFFLAGS: Cannot assign requested address
Failed to bring up eth0:0.
-------------

As Workaround i added an ipv4 dummy address to the IF eth0:0:
-------------
auto eth0:0
iface eth0:0 inet static
        #dummy
        address 192.168.66.6
        netmask 255.255.255.255
iface eth0:0 inet6 static
        address 2001:db8::b
        netmask 64
-------------

Now the "/etc/init.d/networking restart" returned no error,but all ipv6 addresses are on eth0 directly (ifconfig):
-------------
eth0 Link encap:Ethernet Hardware Adresse 6c:f0:49:d0:3a:65
          inet Adresse:192.168.5.2 Bcast:192.168.5.255 Maske:255.255.255.0
          inet6-Adresse: 2001:db8::a/64 Gültigkeitsbereich:Global
          inet6-Adresse: 2001:db8::b/64 Gültigkeitsbereich:Global
          inet6-Adresse: fe80::6ef0:49ff:fed0:3a65/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
          RX packets:1979962 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2217511 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:1149728836 (1.1 GB) TX bytes:1907867026 (1.9 GB)
          Interrupt:25 Basisadresse:0x4000

eth0:0 Link encap:Ethernet Hardware Adresse 6c:f0:49:d0:3a:65
          inet Adresse:192.168.66.6 Bcast:192.168.66.255 Maske:255.255.255.255
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
          Interrupt:25 Basisadresse:0x4000
-------------

In my opinion thats no proper handling.

Wido den Hollander (wido) wrote :

I'm having the same problem, right now I fix this with:

-------------------------------------------------------------------
auto eth1
iface eth1 inet6 static
        address 2a00:0f10:010a:0003::2
        netmask 64
        gateway 2a00:0f10:010a:0003::1
        post-up ip -f inet6 addr add 2a00:0f10:010a:0003:7ab9::80 dev eth1
        pre-down ip -f inet6 addr del 2a00:0f10:010a:0003:7ab9::80 dev eth1
        post-up ip -f inet6 addr add 2a00:0f10:010a:0003:7ab9::81 dev eth1
        pre-down ip -f inet6 addr del 2a00:0f10:010a:0003:7ab9::81 dev eth1
        post-up ip -f inet6 addr add 2a00:0f10:010a:0003:7ab9::82 dev eth1
-------------------------------------------------------------------

But that's not really usefull.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ifupdown (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.