Bug 254445 - cloned_interfaces="bridge0" does not respect net.inet6.ip6.auto_linklocal
Summary: cloned_interfaces="bridge0" does not respect net.inet6.ip6.auto_linklocal
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 13.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-20 22:15 UTC by John W. O'Brien
Modified: 2021-03-22 14:12 UTC (History)
4 users (show)

See Also:
john: mfc-stable13?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John W. O'Brien 2021-03-20 22:15:33 UTC
Expected behavior
-----------------

When creating a IPv6-enabled bridge interface, the AUTO_LINKLOCAL flag will be set automatically, and the interface will be assigned a link-local address.

Observed behavior
-----------------

The IPv6-enabled bridge interface does not have a link-local address, even if a globally-unique address is assigned to affirm the IPv6 intent.

First observed on 12.1-RELEASE amd64, observed again on 12.2-RELEASE-p4 amd64, reproduced on 13.0-RC3 aarch64 EC2 AMI.

Steps to reproduce
------------------

Verify that net.inet6.ip6.auto_linklocal==1.

Set cloned_interfaces="bridge0" and reboot.

Verify that AUTO_LINKLOCAL is not set on bridge0.

Then set ifconfig_bridge0_ipv6="inet6 2001:db8::1/64" and reboot.

Verify that AUTO_LINKLOCAL is not set on bridge0.

Note that AWS AMIs set ipv6_activate_all_interfaces="YES" by default.
Comment 1 Kristof Provost freebsd_committer freebsd_triage 2021-03-20 22:44:35 UTC
This appears to be intentional: https://cgit.freebsd.org/src/commit/?id=af8056441e3f7ef883f0682cbbc5ee33d0975c2f

I'm not sure I understand why though, so I've cc'd the original authors.