Configuring IPv6 on Debian - Global temporary address

1

My mac generates a daily temporary ipv6 for outbound connection usage, is there something similar that's available on Debian?

Thank you! -Pablo

Pablo

Posted 2014-09-02T14:50:53.650

Reputation: 95

Answers

3

You can specify a static address in /etc/network/interfaces:

iface eth0 inet6 static
address 2001:xxx:7927::61
netmask 64
gateway 2001:xxx:7927::1

You can also add additional interfaces (like eth0:0, eth0:1) in the same way.


To get a 'random' IPv6 address you can use the IPv6 Privacy Extension. You can enable it by setting /proc/sys/net/ipv6/conff/ethX/use_tempaddr to 2. This is described in ip-sysctl.txt:

echo "2">/proc/sys/net/ipv6/conff/eth0/use_tempaddr

mtak

Posted 2014-09-02T14:50:53.650

Reputation: 11 805

Thanks for the answer mtak. I'll try the use_tempaddr, but I'm not sure the first part is what I'm looking for. Because my concern is if/when the delegated prefix from Comcast changes, the manual address in /etc/network/interfaces will no longer be reachable – Pablo – 2014-09-03T15:42:48.067