Autoconf from /etc/network/interfaces is not working

neel asked:

I want to disable autoconf of IPv6 for which I am making entries in /etc/network/intefaces file as below. Before making this changes I use “ifdown eth0

iface eth0 inet6 static
address <ipv6_address>
netmask 64
autoconf 0

After this I use “ifup eth0“. But, still I am getting IPv6 global address based on MAC address.

My answer:

First, try fixing the typo:

iface inet6 eth0 static

The second and third parameters are reversed. This should read:

iface eth0 inet6 static

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.