Hacker News new | ask | show | jobs
by heavyset_go 2418 days 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'
1 comments

Awesome, 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
It resets when you turn the NIC on and off, I believe.