4 ms·
Had this alias for years and it still works: alias random-mac='openssl rand -hex 6 | sed '\''s/\(..\)/\1:/g; s/.$//'\'' | xargs sudo ifconfig en0 ether'
by heavyset_go 7y ago
Had this alias for years and it still works:
alias random-mac='openssl rand -hex 6 | sed '\''s/\(..\)/\1:/g; s/.$//'\'' | xargs sudo ifconfig en0 ether'
- Exuma 7y agoAwesome, so does that change the permanent mac address that comes with the laptop, and it is forever gone? Or does it somehow "reset" when you restart, and you rerun this command multiple times
- heavyset_go 7y agoIt resets when you turn the NIC on and off, I believe.