Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 560 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 560 Bytes

random-mac

Generate a random Mac address. There are six method for you.

Method introduction

  • 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

Reference

The OUI list is available.