Skip to content

Instantly share code, notes, and snippets.

@rilindo
Created December 4, 2011 20:04
Show Gist options
  • Save rilindo/1431134 to your computer and use it in GitHub Desktop.
Save rilindo/1431134 to your computer and use it in GitHub Desktop.
This generates a mac address for KVM
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
@rilindo
Copy link
Author

rilindo commented Dec 4, 2011

Not terribly optimal, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment