Ubuntu – How to set /etc/network/interfaces to just autoconfigure ipv6

ipv6

I have a machine that I just want to run ipv6 on, no ipv4.

I want to use an autoconfigured ipv6 address – I have radvd running on my network and it is working fine.

However there is no config in /etc/network/interfaces that I can set to do that. It supports static ipv6, or if I create an ipv4 address on the interface it will set ipv6, but I dont want to.

Currently reduced to bringing up the interface manually in /etc/rc.local but its messy.

Just want to be able to add "iface eth0 inet6 auto" to /etc/network/interfaces" really.

Best Answer

The magical /etc/network/interfaces keyword when you don't want any configuration is manual. If I understand your question correctly, you will want to define eth0 the following way.

auto eth0
iface eth0 inet manual
iface eth0 inet6 auto