Static IPv6 address advertising and IPv6 autoconfig in Debian/Ubuntu

Posted by Pascal on Server Fault See other posts from Server Fault or by Pascal
Published on 2012-06-19T16:42:47Z Indexed on 2012/06/19 21:18 UTC
Read the original article Hit count: 538

Filed under:
|
|
|

I have a network that advertises IPv6 addresses through IPv6 autoconfig. To allow DNS lookups and to have fancy IP addresses, we setup "static" IPv6 addresses through /etc/network/interfaces:

auto eth0
iface eth0 inet dhcp
iface eth0 inet6 static
    address a:b:c:d:e::f 
    netmask 64

Whenever we now connect through IPv6 Linux uses the IPv6 autoconfig address:

 a:b:c:d:21d:60ff:fe4a:479

and not the static IPv6 address:

 a:b:c:d:e::f

A server on the other side only sees the autoconfig address.

Is there a way to force linux (Debian/Ubuntu) to use the static address for outgoing packets? This is especially interesting for reverse DNS and firewall settings.

I don't want to disable the IPv6 autoconfig since I don't have control over the settings the router advertises.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about networking