nginx dedicated v4 AND v6 ip

Is assigning IPv6 to alias adapters the same method as IPv4?

Code:
# The primary network interface
allow-hotplug eth0
# IPv4 address
iface eth0 inet static
    address 23.252.116.146
    netmask 255.255.255.248
    gateway 23.252.116.145
#IPv6 address
iface eth0 inet6 static
    address 2607:f2d8:1:3::2
    netmask 64
    gateway 2607:f2d8:1:3::1
[...]
auto eth0:3
allow-hotplug eth0:3
# IPv4 address
iface eth0:3 inet static
    address 23.252.116.150
    netmask 255.255.255.248
#IPv6 address
iface eth0:3 inet6 static
    address 2607:f2d8:1:3::6
    netmask 64

... gives me ...

Code:
eth0      Link encap:Ethernet  HWaddr 00:25:90:79:40:cc 
          inet addr:23.252.116.146  Bcast:23.252.116.151  Mask:255.255.255.248
          inet6 addr: fe80::225:90ff:fe79:40cc/64 Scope:Link
          inet6 addr: 2607:f2d8:1:3::6/64 Scope:Global
          inet6 addr: 2607:f2d8:1:3::2/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
[...]
eth0:3    Link encap:Ethernet  HWaddr 00:25:90:79:40:cc 
          inet addr:23.252.116.150  Bcast:23.252.116.151  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

Appears 2607:f2d8:1:3::6 is assigned to eth0 and not eth0:3
 
Top Bottom