Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
+1 for going IPv6 only. –  andol Apr 20 '12 at 17:12
add comment

2 Answers

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
share|improve this answer
    
Thanks, I couldnt find the inet6 auto in the documentation, thats what confused me! –  user55807 Apr 20 '12 at 16:24
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.