Created
December 4, 2011 20:04
-
-
Save rilindo/1431134 to your computer and use it in GitHub Desktop.
This generates a mac address for KVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `openssl rand -hex 3`; do echo 52:54:00:`echo $i | cut -c1-2`:`echo $i | cut -c3-4`:`echo $i | cut -c5-6`; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not terribly optimal, but it works.