Skip to content

Instantly share code, notes, and snippets.

@jack9603301
Forked from tomval2k/generate-MAC
Created January 14, 2024 02:56
Show Gist options
  • Save jack9603301/e950c09f5771a435ff29be6a68d9227e to your computer and use it in GitHub Desktop.
Save jack9603301/e950c09f5771a435ff29be6a68d9227e to your computer and use it in GitHub Desktop.
Generate a random MAC address in linux shell
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