unable to set ipv6 address to aliased interface
Typed following hoping to set an ipv6 address to eth0:1
-----------------------------------------------------------
sudo ifconfig eth0:1 inet netmask 255.255.255.0 169.254.100.103 up
sudo ifconfig eth0 inet6 add fdd7:9a84:1ed0::3/64
sudo ifconfig eth0:1 inet6 add fdd7:9a84:1ed0::103/64
But I see that fdd7:9a84:1ed0::103 is set as secondary ip to eth0 instead of setting it to eth0:1
-------------------------------------------------------------
ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:2A:24:1A
inet addr:169.254.100.3 Bcast:169.254.100.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe2a:241a/64 Scope:Link
inet6 addr: fdd7:9a84:1ed0::103/64 Scope:Global
inet6 addr: fdd7:9a84:1ed0::3/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1503 errors:0 dropped:0 overruns:0 frame:0
TX packets:1119 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:597063 (583.0 KiB) TX bytes:130042 (126.9 KiB)
eth0:1 Link encap:Ethernet HWaddr 00:50:56:2A:24:1A
inet addr:169.254.100.103 Bcast:169.254.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
How do I get an ipv6 address to an aliased interface?
thank you
|