[Bug 233754] Router Advertisement configuration and prefixlen

2023-07-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233754

Sergio Carlavilla Delgado  changed:

   What|Removed |Added

 CC||carlavi...@freebsd.org
 Resolution|--- |Overcome By Events
 Status|New |Closed

--- Comment #1 from Sergio Carlavilla Delgado  ---
We created a the new network chapter with instructions to configure IPv4 and
IPv6.
I'm gonna close this PR and please check the new chapter.
If you find a section to improve about IPv6 please open another PR :)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 233754] Router Advertisement configuration and prefixlen

2018-12-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233754

Bug ID: 233754
   Summary: Router Advertisement configuration and prefixlen
   Product: Documentation
   Version: Latest
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: Documentation
  Assignee: d...@freebsd.org
  Reporter: l...@lapo.it

Hi,
while trying to debug a SLAAC configuration problem of mine, I noticed
something strange in the documentation:

https://www.freebsd.org/doc/handbook/network-ipv6.html

chapter 31.9.4 states:

Next, create the configuration file, /etc/rtadvd.conf as seen in this
example: […]
For a dedicated /64 subnet, nothing else needs to be changed. Otherwise,
change the prefixlen# to the correct value.

while `man rtadvd.conf` states:

 As described in rtadvd(8), you do not have to set this configuration file
 up at all, unless you need some special configurations.  You may even
 omit the file as a whole.  In such cases, the rtadvd daemon will
 automatically configure itself using default values specified in the
 specification.

and indeed, I checked with Wireshark and it is broadcasting the correct prefix
length (in my case, /80) with no need to have created that file.

Then my problem is that prefixlen ≠ 64 cannot be used by accept_rtadv or, at
least, it is what I understand from RTFS nd6_rts.c line 1495, which reads:

if (ifidlen + pr->ndpr_plen != 128)

(and ifidlen is always 64, as returned by in6_if2idlen())

I'm not sure what's the best solution for the Handbook, but I'd probably remove
the `rtadv.conf` example altogether, as it gives no advantage and only the risk
of writing it wrong; also, as far as `rtadvd` goes, any prefix length is fine,
but then any FreeBSD client won't accept it anyways, so I'm not so sure
suggesting what to do "when prefixlen is different" is very useful… a warning
about the lack of SLAAC for any other prefixlen could be useful, for people who
don't know it already.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-doc@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscr...@freebsd.org"