On 02.10.2015 15:21, Martin Pieuchot wrote:
> On 02/10/15(Fri) 12:53, Stuart Henderson wrote:
>> [...] 
>> I think it would probably make sense to remove an autoconfigured
>> prefix/address if an interface goes down (and one could argue for this
>> being the right thing to do for IPv4/DHCP as well - I lost count of
>> the number of times I have to manually remove addresses so I can
>> continue to reach my home subnet after I've unplugged the laptop).
> 
> This makes sense and should work for LCP keepalive as well. But I
> don't know how hard would it be to teach dhclient(8) to do that...
> 

That makes perfect sense to me too.

But does an ifconfig down really does not remove autoconfigured IPv6
addresses? I can't test it as ifconfig pppoe0 down does not seem to work
as expected at all (but that's another issue).

At least another interface (em) with a DHCP configured IPv4 address will
have that address removed once it goes down (using ifconfig down).

I think (with my limited knowledge of how it actually works :)) the
PPPoE issue won't be solved like that as unplugging the cable or loosing
the PPPoE connection won't make the interface go down.

I think PPPoE should sort of "reset" it's interface (removing all IPv6
autoconfigured addresses) once a connection is lost. And contrary to
DHCP/SLAAC, PPPoE actually has the possibility built-in to detect that
(using ECHOREQ and ECHOREP).

-- 
Unix _IS_ user friendly - it's just
selective about who its friends are!

Reply via email to