The mini-tool has a CLI-Interface with the following options:
- Unicast or Multicast? Default: Unicast
- Locally Administered or Globally Unique? Default: Locally Administered
- Prescribe specific OUI (overwrites the above two)
TODO
- Add an option to generate a number of MACs without collisions.
- MAC Adress on Wikipedia
- redhat's virtualization guide on Generating a new unique MAC address
- A Perl Script that does the same: randmac.pl
- The python module
netaddr
can help you work with MAC addresses.
#!/usr/bin/python
import random
def mac():
i=0
r=[]
while i<6:
s="".join([random.choice('0123456789ABCDE'),random.choice('0123456789ABCDE')])
r.append(s)
i+=1
r[0]="".join([random.choice('0123456789ABCDEF'),random.choice('0123456789ABC')])
return ":".join(r)
a=input("How many MACs do you need? \n >")
for b in range(a):
print mac()
#this creates as many MAC addresses as the user wants to - this is not specific OUI but it can be changed easily