Generate a random Mac address. There are six method for you.
- randomMac() generate a totally random mac address.
- randomMacWithOui() generate a random mac address with three number in the front like {0x32, 0x21, 0xa2}.
- randomMac4Qemu() generate a random mac address for qemu/kvm, because the oui of qemu/kvm is {52, 54, 00}.
- invoke randomMac4Xen(), randomMac4Apple(), randomMac4Huawei() reference randomMac4Qemu
The OUI list is available.