[Bug 266544] Cannot send to static ipv6 interface routes

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Sep 2022 06:49:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266544

            Bug ID: 266544
           Summary: Cannot send to static ipv6 interface routes
           Product: Base System
           Version: 12.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jaunts_buys.0b@icloud.com

Hello,

Consider a static IPv6 deployment where there are multiple prefixes on the
link. FreeBSD is configured with an ipv6 address on one of those prefixes, but
the other prefix must be reached via a static route. There are no router
advertisements on the link.


Problem:
Traffic flows to the prefix for which the host has an address, but does not
flow to the prefix via the static route.

To Reproduce:
1) Install FreeBSD-12.3-RELEASE. I used the FreeBSD-12.3 VMDK VMware image and
logged in as root.

2) Configure the interface without specifying accept_rtad:
# ifconfig em0 inet6 2001:db8:1::1/64

3) Observe ping6 2001:db8:1::1 works

4) Add static route to another prefix on the link:
# route -6 add -net 2001:db8:2::/64 -iface em0

5) Observe pinging any host on 2001:db8:2::/64 does not work and produces the
following error:

ping6: sendmsg: No buffer space available
ping6: wrote 2001:db8:2::2 16 chars, ret=-1

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