Last active
January 14, 2024 02:56
-
-
Save tomval2k/9b83e5571318f093b21502284985883a 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