Skip to content

Instantly share code, notes, and snippets.

@jersub
Created April 14, 2011 22:08
Show Gist options
  • Save jersub/920684 to your computer and use it in GitHub Desktop.
Save jersub/920684 to your computer and use it in GitHub Desktop.
Generates a random MAC address and prints it to stdout.
#!/bin/sh
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment