Bash script that generates a random MAC address

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

hexdump -n3 -e'/3 "52:54:00" 3/1 ":%02X"' /dev/random; echo ""

Options:

-n<number> Interpret only number bytes of the input.

-e ' format-string '