11

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.

0

2 Answers 2

18

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
2
  • Thanks, I couldnt find the inet6 auto in the documentation, thats what confused me!
    – user55807
    Apr 20, 2012 at 16:24
  • 2
    @user55807 If this answer solved your question, you should click the green check next to it to mark it at solved.
    – Azendale
    May 11, 2014 at 0:37
1

Ubuntu 11.10 (Oneiric) was the first release to support the auto method on IPv6 interfaces (compare the 11.10 interfaces manpage to the 11.04 interfaces manpage). If you aren't running 11.10 or later and can't upgrade, your rc.local hack is probably the simplest way, although I seem to recall the DHCP method working on IPv6 interface definitions. This requires a DHCPv6 server, of course.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .