Specifying link-local address in rc.conf

Hiroki Sato hrs at FreeBSD.org
Tue Jul 7 22:59:35 UTC 2020


Niclas Zeising <zeising+freebsd at daemonic.se> wrote
  in <de5692a6-710a-4f06-1445-865ae6c89f02 at daemonic.se>:

ze> On 2020-07-07 12:02, Hiroki Sato wrote:
ze> > Niclas Zeising <zeising+freebsd at daemonic.se> wrote
ze> >    in <713e1f3e-4dd9-8dcf-c6d2-15c684bdce5b at daemonic.se>:
ze> > ze> Hi!
ze> > ze> Is it possible to specify a link-local address in rc.conf, and get
ze> > ze> only that link-local address?
ze> >   The following is a typical configuration if you want to disable
ze> >   EUI-64 LLA:
ze> >    ifconfig_vtnet0="inet ...."
ze> >    ifconfig_vtnet0_ipv6="inet6 -auto_linklocal"
ze> >    ifconfig_vtnet0_alias0="inet6 fe80::1/64"
ze> >    ifconfig_vtnet0_alias1="inet6 2001:6b8::1/64"
ze> >   Address family keyword is mandatory.  Most of address configurations
ze> >   with no AF keyword are handled as expected, but some are not.
ze>
ze> Hi!
ze> This example does not work, it generates a EUI64 link-local address on
ze> vtnet0, and then adds the other IPv6 addresses.
ze> It looks like anything that has ifconfig_vtnet0="inet ..." or even
ze> just "up" generates the link_local address.

 Hmm, that's odd.  Can you send me a log by the following command-line
 off-list?  I will investigate the cause.

 # env -i rc_debug=YES /bin/sh -x /etc/rc.d/netif restart vtnet0

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 342 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20200708/d933935d/attachment.sig>


More information about the freebsd-net mailing list