Minimal install of 12.04LTS
I'd like to have a static IPv6 + privacy address.
With "iface eth0 inet6 auto" I get privacy + SLAAC
With "iface eth0 inet6 static" I only get static. This seems wrong.
Code:
root@ubuntu:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.150.212.86
gateway 10.150.212.65
netmask 255.255.255.192
network 10.150.212.64
broadcast 10.150.212.127
dns-nameservers 10.150.212.141 10.150.212.142
dns-domain local
# This is an autoconfigured IPv6 interface
iface eth0 inet6 static
address 2a00:XXXX:5:140::56
netmask 64
gateway 2a00:XXXX:5:140::1
dns-nameservers 2a00:XXXX:5:180::8d,2a00:XXXX:5:180::8e
dns-domain local
Code:
root@ubuntu:~# cat /etc/sysctl.d/10-ipv6-privacy.conf
# IPv6 Privacy Extensions (RFC 4941)
# ---
# IPv6 typically uses a device's MAC address when choosing an IPv6 address
# to use in autoconfiguration. Privacy extensions allow using a randomly
# generated IPv6 address, which increases privacy.
#
# Acceptable values:
# 0 - donât use privacy extensions.
# 1 - generate privacy addresses
# 2 - prefer privacy addresses and use them over the normal addresses.
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
Code:
root@ubuntu:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:56:a7:37:25
inet addr:10.150.212.86 Bcast:10.150.212.127 Mask:255.255.255.192
inet6 addr: fe80::250:56ff:fea7:3725/64 Scope:Link
inet6 addr: 2a00:XXXX:5:140::56/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:330 errors:0 dropped:0 overruns:0 frame:0
TX packets:228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29414 (29.4 KB) TX bytes:30357 (30.3 KB)
Bookmarks