You are not logged in.
Hi,
I have a IPv6 connection and i want to use a dynamic "random" IPv6 address for my outgoing connections. So, i've tested the following command:
% sudo sysctl -w net.ipv6.conf.eth0.use_tempaddr=2
net.ipv6.conf.eth0.use_tempaddr = 2
% sysctl net.ipv6.conf.eth0.use_tempaddr
net.ipv6.conf.eth0.use_tempaddr = 2It works fine: my eth0 interface has now 2 non local IPv6 addresses. A dynamic one and a "static" one, computed from the MAC address :
% ip a s eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether f0:de:f1:a8:4a:4e brd ff:ff:ff:ff:ff:ff
inet 192.168.2.49/24 brd 192.168.2.255 scope global eth0
inet6 .................../64 scope global temporary dynamic
valid_lft 86263sec preferred_lft 85663sec
inet6 ................../64 scope global dynamic
valid_lft 86263sec preferred_lft 86263sec
inet6 fe80::f2de:f1ff:fea8:4a4e/64 scope link
valid_lft forever preferred_lft foreverTo configure once for all this setting, i've added the following line in my /etc/sysctl.conf file :
net.ipv6.conf.eth0.use_tempaddr = 2But, on boot, i can see a message saying this key is not recognized and a sysctl command shows the value is still the default one (0)...
Any clue?
Offline