churchers / vm-bhyve

Shell based, minimal dependency bhyve manager
BSD 2-Clause "Simplified" License
825 stars 174 forks source link

Add auto_linklocal option to the IPv6 bridge. #511

Open madpilot78 opened 1 year ago

madpilot78 commented 1 year ago

I'm using dnsmasq to assign IPs to machines. It can also send router advertisement messages allowing to use SLAAC in VMs to get IPv6 addresses.

I'm an IPv6 novice so my description could not be completely accurate, but these advertisement messages MUST be sent using link local IPv6 addresses to be conformant, otherwise OSes ignore them.

In FreebSD bridge(4) interfaces by default have no link local addresses.

Adding the auto_linklocal causes the interface to autoassign a valid link local address, so SLAAC works properly.

I suggest enabling this unconditionally, I don't see any ill effects this could cause, considering the bridge is used as a swtich.