source of ether address for tap0 ?
Kurt Jaeger
pi at freebsd.org
Wed Apr 21 07:55:54 UTC 2021
Hi!
> > does anyone know how the system selects the MAC/ether adress of a
> > newly-created tap0 device ?
> >
> > ifconfig tap0 create
[...]
> > How is that selected ?
> > We had a case where two devices selected the same ether/MAC...
>
> tap MACs are derived from the hostid (/etc/hostid) -- you generally
> end up with the same MAC in one of two scenarios:
Thanks! I've submitted two PRs to help others find this info in
the future.
augment if_tuntap man page on source of autogenerated MAC (/etc/hostid)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255294
man page for /etc/hostid and pointer in sethostid/gethostid(3) to /etc/hostid
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255293
If I find the time, I'll try to submit the necessary patches.
--
pi at FreeBSD.org +49 171 3101372 Now what ?
More information about the freebsd-net
mailing list