-
-
Save jack9603301/e950c09f5771a435ff29be6a68d9227e to your computer and use it in GitHub Desktop.
Generate a random MAC address in linux shell
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
hexdump -n6 -e '6/1 ":%02x"' /dev/urandom | awk ' { sub(/^:../, "02"); print } ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment