Here is the code I use for my mac to randomize my mac address: interface="en0" new_mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/:$//; s/./0/2') # from stackoverflow sudo ifconfig $interface ether $new_mac Edit: What's the advantage of the solution in the post? If I just change my mac address every time I join a network (even the same one), they can't track me with my randomized mac addresses. So why would I pre…
Because maybe you had to pay to access the network and part of that involved binding your mac address. For example, calling the hotel desk to get your device to work.
I only know about mac whitelisting in protected networks managed by wary administrators.