[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: autoconfiguring inet6 with ifup/down



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.
>>>
>> You could use the 'manual' method (I think).
>>
>> auto eth0
>> iface eth0 inet manual
> 
> I just put that in my interfaces file, but "ifup eth0" now doesn't
> configure the IPv6 part:
> 
>> The IPv6 part should autoconfigured regardless, but this should bring
>> your interface up.
> 
> apparently, it isn't. (also, 'ifdown eth0' doesn't bring the IPv6 part
> down, if it is up).

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

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.

- S



Reply to: