Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Specifying names for tap interfaces



>> Since MACs are UUIDs-
> No they are not.

Agreed.  They aren't even the same size - MACs are 48 bits while UUIDs
are 128 bits.

> When you work with VMs the MAC is very, very often randomly
> generated, because you do not have a centralized entity (the NIC's
> manufacturer) that assigns a unique MAC address to the card.  [...]
> It is the half-bogus way of ensuring you do not end up having
> multiple VMs with the same MAC address somewhere on your LAN.

That's what the `locally administered' bit in MACs is for.  In theory,
you should do your own MAC allocation and assignment, making sure to
set the lcoally-administered bit in each resulting MAC.

In practice, because there are 46 bits available to be randomized (MACs
are 48 bits, but two bits have semantic meaning and are not available
for randomization), you have to have many thousands of hosts in the
same MAC domain before the chance of collision between randomly
generated MACs becomes significant - assuming decent randomness, which
admittedly is not always a safe assumption, especially for numbers
generated early at boot.

> Annoying, even more so when you are a VPS provider with thousands of
> thousands of VMs based on the same skeleton.

Don't forget, MACs need to be unique only within each MAC domain (which
mostly means broadcast domain, unless you have very broken switches).

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index