ip -6 addr flush dev <device> flushes also the autogenerated link-local address
Subsystems (2)
Hi,
sure one know that using
ip -6 addr flush dev <device>
flushes (removes) all IPv6 addresses on a device.
Unfortunately, it also removes the autogenerated link-local address.
It reappears only if interface was cycled down and up, not so nice.
What about an feature that the automagically generated link-local address will not be removed on "flush"?
Peter
Signature · 3 lines
Dr. Peter Bieringer http://www.bieringer.de/pb/ GPG/PGP Key 0x958F422D mailto: pb at bieringer dot de Deep Space 6 Co-Founder and Core Member http://www.deepspace6.net/
Is this a user space problem? I think we had something along these lines fixed recently. Thomas?
cheers,
jamal
Quoted 17 lines · Peter Bieringer
Hi,
sure one know that using
ip -6 addr flush dev <device>
flushes (removes) all IPv6 addresses on a device.
Unfortunately, it also removes the autogenerated link-local address.
It reappears only if interface was cycled down and up, not so nice.
What about an feature that the automagically generated link-local address will not be removed on "flush"?
Peter
* jamal <[email protected]> 2005-03-02 17:09
Quoted 3 lines
Is this a user space problem? I think we had something along these lines fixed recently. Thomas?
I didn't fix any of these but it's definitely a userspace problem. One can easly work around this by iterating over all scopes except for link local and provide the scope to flush. We'll have to put additional filters into print_addrinfo() if we want this to be default but I'm not even sure what the official policy should be like. Any standards on this?
In article <[email protected]> (at Thu, 3 Mar 2005 00:14:00 +0100), Thomas Graf <[email protected]> says:
Quoted 11 lines
* jamal <[email protected]> 2005-03-02 17:09
Quoted 3 lines
Is this a user space problem? I think we had something along these lines fixed recently. Thomas?
I didn't fix any of these but it's definitely a userspace problem. One can easly work around this by iterating over all scopes except for link local and provide the scope to flush. We'll have to put additional filters into
print_addrinfo()if we want this to be default but I'm not even sure what the official policy should be like. Any standards on this?
I believe that flush should remove all addresses including link-local. So, current behavior is correct.
--yoshfuji
--On Thursday, March 03, 2005 09:00:09 AM +0900 "YOSHIFUJI Hideaki /
Quoted 15 lines · =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=" <[email protected]> wrote:
In article <[email protected]> (at Thu, 3 Mar 2005 00:14:00 +0100), Thomas Graf <[email protected]> says:
Quoted 11 lines
* jamal <[email protected]> 2005-03-02 17:09
Quoted 3 lines
Is this a user space problem? I think we had something along these lines fixed recently. Thomas?
I didn't fix any of these but it's definitely a userspace problem. One can easly work around this by iterating over all scopes except for link local and provide the scope to flush. We'll have to put additional filters into
print_addrinfo()if we want this to be default but I'm not even sure what the official policy should be like. Any standards on this?
Quoted 2 lines
I believe that flush should remove all addresses including link-local. So, current behavior is correct.
My pitfall was that I didn't know (but Pekka told me) that "ip -6 flush" also understand scopes.
So I use the suggestion given by Thomas to run through all scopes of the addresses and flush dedicated like
ip -6 addr flush dev <device> scope global
ip -6 addr flush dev <device> scope site
BTW: how many scopes are currently defined?
ip help shows me:
SCOPE-ID := [ host | link | global | NUMBER ]
What means NUMBER and why is "site" understood but not in online help?
Peter
Signature · 3 lines
Dr. Peter Bieringer http://www.bieringer.de/pb/ GPG/PGP Key 0x958F422D mailto: pb at bieringer dot de Deep Space 6 Co-Founder and Core Member http://www.deepspace6.net/
Quoted 6 lines
BTW: how many scopes are currently defined?
ip help shows me:
SCOPE-ID := [ host | link | global | NUMBER ]What means NUMBER and why is "site" understood but not in online help?
The kernel hardcodes the following scopes internally:
0 {global | universe}
200 site
253 link
254 host
255 nowhere
Additional names may be assigned to numbers in /etc/iproute2/rt_scopes