Skip to contentSkip to conversation

sysctl net.ipv6.conf.eth0.use_tempaddr only recogniced on interface start?

DISCUSSION Peter Bieringer 3 participants 5 messages Aug 30, 2004 – Feb 10, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

during playing around with RFC3041 capability in Linux kernel, I recognized that the toggle (e.g. net.ipv6.conf.eth0.use_tempaddr) in sysctl is only recognized if interface state changes from down to up, which means you can't enable RFC3041 on an already running interface.

Is this

a) by design
b) temporary issue, will be solved later
c) bug, will be solved soon

I would need an answer because I want to implement support for this feature in initscripts-ipv6, and it has a major impact on the location where to put the related scripting code.

In case of a) -> before interface goes up, "ifup" needs to be extended In case of b),c) -> "ifup-ipv6" can be extended

Thank you very much for any hint,
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/
#1 lore raw

In article <[email protected]> (at Mon, 30 Aug 2004 10:09:46 +0200), Peter Bieringer <[email protected]> says:

Quoted 4 lines

during playing around with RFC3041 capability in Linux kernel, I recognized that the toggle (e.g. net.ipv6.conf.eth0.use_tempaddr) in sysctl is only recognized if interface state changes from down to up, which means you can't enable RFC3041 on an already running interface.

Not quite true. net.ipv6.conf.eth0.use_tempaddr is recognized, but new temporary addresses is created only when new public address is created (by specification).

Quoted 5 lines

Is this

a) by design
b) temporary issue, will be solved later
c) bug, will be solved soon

a

and even b; we can probably extend our implementation
to create temprary address when net.ipv6.conf.eth0.use_tempaddr is changed from 0 to 1.

Signature · 2 lines
Hideaki YOSHIFUJI @ USAGI Project <[email protected]>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
#2 lore raw

Re: (usagi-users 03019) Re: sysctl net.ipv6.conf.eth0.use_tempaddr only recogniced on interface start?

--On Monday, August 30, 2004 06:08:05 PM +0900 "YOSHIFUJI Hideaki /

Quoted 11 lines · =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=" <[email protected]> wrote:

In article <[email protected]> (at Mon, 30 Aug 2004 10:09:46 +0200), Peter Bieringer <[email protected]> says:

Quoted 4 lines

during playing around with RFC3041 capability in Linux kernel, I recognized that the toggle (e.g. net.ipv6.conf.eth0.use_tempaddr) in sysctl is only recognized if interface state changes from down to up, which means you can't enable RFC3041 on an already running interface.

Not quite true. net.ipv6.conf.eth0.use_tempaddr is recognized, but new temporary addresses is created only when new public address is created (by specification).

Ok, should be perhaps noted in ip-sysctl.txt.

Quoted 11 lines
Quoted 5 lines

Is this

a) by design
b) temporary issue, will be solved later
c) bug, will be solved soon

a

and even b; we can probably extend our implementation to create temprary address when net.ipv6.conf.eth0.use_tempaddr is changed from 0 to 1.

    (or to 2)

Hmm, from users point of view I would request the extension, because in case of if sysctl-toggle will be done too late (means RA was already received), nothing happen until next down->up cycle, if prefix of RA is still the same.

Would such extension break any specifications?

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/
#3 lore raw

Re: (usagi-users 03019) Re: sysctl net.ipv6.conf.eth0.use_tempaddr only recogniced on interface start?

In reply to YOSHIFUJI Hideaki / 吉藤英明

Hi,

--On Monday, August 30, 2004 06:08:05 PM +0900 "YOSHIFUJI Hideaki /

Quoted 18 lines · =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=" <[email protected]> wrote:

In article <[email protected]> (at Mon, 30 Aug 2004 10:09:46 +0200), Peter Bieringer <[email protected]> says:

Quoted 4 lines

during playing around with RFC3041 capability in Linux kernel, I recognized that the toggle (e.g. net.ipv6.conf.eth0.use_tempaddr) in sysctl is only recognized if interface state changes from down to up, which means you can't enable RFC3041 on an already running interface.

Not quite true. net.ipv6.conf.eth0.use_tempaddr is recognized, but new temporary addresses is created only when new public address is created (by specification).

Quoted 5 lines

Is this

a) by design
b) temporary issue, will be solved later
c) bug, will be solved soon

Quoted 5 lines

a

and even b; we can probably extend our implementation to create temprary address when net.ipv6.conf.eth0.use_tempaddr is changed from 0 to 1.

Any news on that? Have you plans to implement it?

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/
#4 lore raw

Re: (usagi-users 03019) Re: sysctl net.ipv6.conf.eth0.use_tempaddr only recogniced on interface start?

Quoted 7 lines · Peter Bieringer
Quoted 5 lines

a

and even b; we can probably extend our implementation to create temprary address when net.ipv6.conf.eth0.use_tempaddr is changed from 0 to 1.

Any news on that? Have you plans to implement it?

Speaking of which, it would REALLY useful to implement the similar "state change triggers" for e.g. accept_ra (which would send out a RS immediately, which is currently impossible from the user space).

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings