Posted by & filed under Computers, Linux, Random Thoughts.

Quick and simple MAC address generator:

dd if=/dev/urandom bs=1 count=3 2>/dev/null | od -tx1 | head -1 \
         | cut -d' ' -f2- | awk '{ print "00:50:19:"$1":"$2":"$3 }'

I normally have this set up as an alias in my profile under ‘mac’.

Leave a Reply

Your email address will not be published. Required fields are marked *