Generate random MAC address for e.g. Xen guests
The following tiny python script can be used to generates a MAC address for different purposes e.g. Xen guest.
#! /usr/bin/python # macgen.py script generates a MAC address for Xen guests # import random mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] print ':'.join(map(lambda x: "%02x" % x, mac))
Related posts:
- Howto Access via ssh a Virtualbox Guest machine
- Automatic Generate JUnit Tests
- Troubleshooting CGI premature end of script headers on Plesk
- Eclipse IDE
- WordPress plugins
- Credit Card Number Generator
- Floating Windmills in the North Sea to Generate Sustainable Electricity
- Howto Create Generate a Certificate Signing Request
- Wireless: How To Secure Your Wireless Network
- Ubuntu Howto: Install Xen

