If you want to generate a new address, just hit the UP arrow on the keyboard, then hit RETURN again, this will re-execute the same command in just about any modern shell. The hexadecimal output will be the generated MAC address, and will look something like this: 07:e0:17:8f:11:2f The advantage to this trick is that it’s fairly simple, short, sweet, and doesn’t require any third party utilities or scripts, it works in OS X and Linux as is. ![]() Openssl rand -hex 6 | sed 's/\(.\)/\1:/g s/.$//'īe sure that command syntax is pasted onto a single line. To get started, jump to your terminal or command line window, and paste the following syntax into the command line to generate a randomized MAC address: How to Generate a Random MAC Address from the Command Line
0 Comments
Leave a Reply. |