Sami Haahtinen wrote:
Joost Witteveen wrote:Adam M. wrote:Joost Witteveen wrote:I just enabled ipv6 on my main computer, and activated radvd on the local LAN port. After that, as by magic, the ethernet card on my other properly configures itself with just a "ifconfig eth0 up", really cool. However, I don't see what I should write in /etc/network/interfaces to make ifup eth0 just do a "ifconfig eth0 up", letting the autoconfiguring of ipv6 doing it's work.I think this should do the trick: auto eth0 iface eth0 inet manual up ip link set eth0 up down ip link set eth0 down
Yes, you're right, that works. Thanks!
The problem appears to be that the manual method relies on external scripts to bring the link up before configuring the interface. I think ifupdown should have an inet6 autoconf method that would just bring up the interface.
Something like auto eth0 iface eth0 inet6 autoconfyou mean? At least that's what I was looking for. I was about to hack something together, but I realise that in the above case ifup/down shouldn't just do a "ifconfig eth0 up/down", as that would interfear with the IPv4 status of eth0. That is, it may not do the right thing with:
iface eth0 inet dhcp iface eth0 inet6 autoconfFor example, what happens one of the IPv4 dhcp or IPv6 autoconf fail, but the other one succeeds? What state should ifup/down mark the device in? Maybe that's why the current inet6 methods are (as far as I can see) methods that cannot fail.
-- Groetjes joostje 47d3fcfe28f2a83497e79d9bc7d5087c-4a1ee1fddab4648175518cb4c1c9edb3ed0e89f0