how is the MAC for tap(4) computed?

Michael Berman michael.berman at tidalscale.com
Mon Nov 4 16:26:42 UTC 2013


Peter, lost the last part of your message ...

An alternative would be hashing the vm name with the host name and host MAC address.

Sent from my iPhone

> On Nov 4, 2013, at 6:26 AM, "Peter Grehan" <grehan at freebsd.org> wrote:
> 
> Hi Aryeh,
> 
>> There seems to be a very high rate of MAC address collisions when tap is
>> running on different machines.... is there anyway to make the selection of
>> MAC more random
> 
> Do you mean, tap(4) when used with bhyve ? If so, bhyve calculates the MAC address for adapters based on an md5 hash of the PCI slot/function and VM name. If you use the same bhyve configuration on a different machine, the MAC address will be the same.
> 
> If that's the problem, you may want to supply your own MAC address with the "mac=" parameter on the command line e.g.
> 
> later,
> 
> Peter.
> 
> _______________________________________________
> freebsd-virtualization at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"


More information about the freebsd-virtualization mailing list