Cant add multiple ipv6 addresses to an interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Debian) |
Unknown
|
Unknown
|
|||
ifupdown (Ubuntu) |
Confirmed
|
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/
-------------
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.
-------------
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.
-------------
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
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
RX bytes:1149728836 (1.1 GB) TX bytes:1907867026 (1.9 GB)
eth0:0 Link encap:Ethernet Hardware Adresse 6c:f0:49:d0:3a:65
inet Adresse:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
-------------
In my opinion thats no proper handling.
I'm having the same problem, right now I fix this with:
------- ------- ------- ------- ------- ------- ------- ------- ------- ---- 010a:0003: :2 010a:0003: :1 010a:0003: 7ab9::80 dev eth1 010a:0003: 7ab9::80 dev eth1 010a:0003: 7ab9::81 dev eth1 010a:0003: 7ab9::81 dev eth1 010a:0003: 7ab9::82 dev eth1 ------- ------- ------- ------- ------- ------- ------- ------- ----
auto eth1
iface eth1 inet6 static
address 2a00:0f10:
netmask 64
gateway 2a00:0f10:
post-up ip -f inet6 addr add 2a00:0f10:
pre-down ip -f inet6 addr del 2a00:0f10:
post-up ip -f inet6 addr add 2a00:0f10:
pre-down ip -f inet6 addr del 2a00:0f10:
post-up ip -f inet6 addr add 2a00:0f10:
-------
But that's not really usefull.