-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host bits on prefix/route options are non-zero, can cause confusion. #67
Comments
A further case that needs special handling:
vs.
How should This is even more problematic when you want use |
Hmmm... I think radvd should mask out the bits beyond the prefix, but this
may break existing configurations out there.
As for the ::/64, I'm not sure.. I suspect leaving it as is and letting it
flap is possibly ok. Mixing automatic prefixes with explicit ones seems
error prone to me. I *think* the way to handle that error would be to tell
the user to remove the address with that prefix from that interface so it
wouldn't be picked up by the ::/64 code.
I don't think the ::/64 code was not intended to be used in conjunction
with other prefixes. The whole idea is you don't know what the prefix is
so just use whatever my interface has...
…On Mon, Oct 30, 2017 at 2:52 PM, Robin H. Johnson ***@***.***> wrote:
A further case that needs special handling:
prefix ::/64 { AdvValidLifetime 3600; };
prefix fd3c:b2e8:93df:1:2::/64 { AdvValidLifetime 86400; };
vs.
prefix fd3c:b2e8:93df:1:2::/64 { AdvValidLifetime 86400; };
prefix ::/64 { AdvValidLifetime 3600; };
How should prefix fd3c:b2e8:93df:1:2::/64 be handled? On Linux hosts,
this is treated as two seperate RAs, and the lifetime is seen flapping.
This is even more problematic when you want use prefix ::/64, but
suppress a single prefix from it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#67 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMTe3RAx1qc7JOG2l9e3yZhKDVaSZPTks5sxkU5gaJpZM4K6QAG>
.
|
I ask about the combination case because I recently encountered it inside Ubiquiti EdgeRouters when using DHCPv6-PD. It runs radvd with a |
I guess what will have to be done is we’ll need to decide which one take priority and code it up accordingly, and update the man page with the new behavior.
…Sent from my iPhone
On Oct 31, 2017, at 12:16 PM, Robin H. Johnson ***@***.***> wrote:
I ask about the combination case because I recently encountered it inside Ubiquiti EdgeRouters when using DHCPv6-PD. It runs radvd with a prefix ::/64, and then the PD daemon rotates the addresses on the interface as pushed by the ISP. If you want to also run your own ULA address, with different parameter, you get the the duplicate prefix in the RA along with the flap. Or worse, if you wanted to have AdvAutonomous off on the ULA prefix, you're stuck, because the unspecified prefix causes it to be sent :-(.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think the auto prefix should NOT take priority over a static one. What do you think?
…Sent from my iPhone
On Oct 31, 2017, at 12:16 PM, Robin H. Johnson ***@***.***> wrote:
I ask about the combination case because I recently encountered it inside Ubiquiti EdgeRouters when using DHCPv6-PD. It runs radvd with a prefix ::/64, and then the PD daemon rotates the addresses on the interface as pushed by the ISP. If you want to also run your own ULA address, with different parameter, you get the the duplicate prefix in the RA along with the flap. Or worse, if you wanted to have AdvAutonomous off on the ULA prefix, you're stuck, because the unspecified prefix causes it to be sent :-(.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think we can give ourselves easy flexibility: Introduce a
|
HostBits: Thinking about your concern in breaking existing configs, adding a new toplevel (command-line arg?) or interface option, for strict RFC, so it masks the hostbits? |
I’m leaning toward just doing RFC spec. I’m having doubts that if anybody is doing that that it would work as expected.
…Sent from my iPhone
On Oct 31, 2017, at 12:48 PM, Robin H. Johnson ***@***.***> wrote:
HostBits: Thinking about your concern in breaking existing configs, adding a new toplevel (command-line arg?) or interface option, for strict RFC, so it masks the hostbits?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Any news? |
If a route or prefix option in the configuration has more bits specified than the address length mask, Radvd should:
Specifications:
https://tools.ietf.org/html/rfc4861#section-4.6.2 page 30:
Emphasis:
The bits in the prefix after the prefix length are reserved and MUST be initialized to zero by the sender
.https://tools.ietf.org/html/rfc4191#section-2.3 page 5:
Splitting options in this case between two immediately sequential Router Advertisements should be considered as a case of a single long RA (of a link with infinite MTU).
Sample configuration input:
actual tcpdump:
expected tcpdump:
Problems to discuss:
The text was updated successfully, but these errors were encountered: