'SIOCSIFFLAGS: Cannot assign requested address' when setting up IPv6 alias
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Debian) |
Fix Released
|
Unknown
|
|||
ifupdown (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ifupdown
This is very similar to Bug #123773, but is specific to IPv6 and should probably be tracked separately.
I don't have an instance ready to retest on, but this apparently worked on Jaunty (9.04) and broke on Karmic (9.10). I'm actually re-using the "/etc/network/
Per the IFCONFIG(8) man page, I'm attempting to define an IP alias in /etc/network/
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
auto eth0:0
iface eth0:0 inet6 static
address 2001:db8::1
netmask 64
(2001:db8::1 is only an example address.)
Attempting to perform an "ifup eth0:0" results in:
SIOCSIFFLAGS: Cannot assign requested address
Failed to bring up eth0:0.
Unlike Bug #123773, this is not coming from the wireless-tools or other event scripts, as disabling them does not change the result.
The following command is a work-around, and works as a post-up command in /etc/network/
ip addr add 2001:db8::1/64 dev eth0
Defining an IPv4 alias also works correctly using either the alias stanza or the "ip addr add" command.
uname: Linux 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux
ifupdown package version is 0.6.8ubuntu21
Changed in ifupdown (Debian): | |
status: | Unknown → New |
Changed in ifupdown (Debian): | |
status: | New → Fix Committed |
Changed in ifupdown (Debian): | |
status: | Fix Committed → Fix Released |
Changed in ifupdown (Ubuntu): | |
assignee: | Stéphane Graber (stgraber) → nobody |
Changed in ifupdown (Ubuntu Precise): | |
assignee: | Stéphane Graber (stgraber) → nobody |
You should need no interface aliases on IPv6, as IPv6 provides for an interface to have more than one address.