logoalt Hacker News

gausswhotoday at 3:35 PM3 repliesview on HN

I think this is only true for mobile devices? I'm curious how one would configure Linux to randomize MAC addresses by default.


Replies

raframtoday at 3:51 PM

macOS rotates MAC addresses between networks by default, and between connections to the same network unless it's password-protected. (It's under System Settings -> "Details..." or three-dot menu by a network -> "Private Wi-Fi address.")

Windows also randomizes by default as long as your network controller supports it.

It sounds like Linux requires some textual configuration that depends on your distro.

c22today at 3:44 PM

In Linux changing the MAC address can be done simply on the command line, so I'd probably just write this functionality into a bash script that I'd call before ifup.