Reading actual Wi-Fi hardware MAC address on macOS Sequoia
2024-12-4 21:46:8 Author: derflounder.wordpress.com(查看原文) 阅读量:2 收藏

Home > Mac administration, macOS > Reading actual Wi-Fi hardware MAC address on macOS Sequoia

Reading actual Wi-Fi hardware MAC address on macOS Sequoia

One of the privacy protections Apple introduced for macOS as part of macOS Sequoia is MAC address randomization. This address randomization is a privacy feature which Apple first introduced for mobile devices in iOS / iPadOS 14 and later, as well as watchOS 7 and later, which enables a unique randomly generated MAC address to be provided to Wi-Fi networks when an Apple device connects via Wi-Fi to the Wi-Fi network. The reason for doing this is to prevent the Apple device from being tracked as it connects to public Wi-Fi networks, as each Wi-Fi network will receive a new MAC address from the Apple device every time it connects to the Wi-Fi network in question.

For shops which want to disable the MAC address randomization for their own Wi-Fi networks, Apple has provided a DisableAssociationMACRandomization management setting which is available for use in iOS 14 and later, macOS 15 and later, and watchOS 7 and later. However, for shops which don’t want to disable this privacy protection but still want to be able to find out what the actual MAC address of the Wi-Fi network interface on Macs running macOS Sequoia and later, it’s possible to use the networksetup tool to do so. (Hat tip to everyone in the Mac Admins Slack who helped with figuring this out.) For more information, please see below the jump.

Assuming the Wi-Fi network interface on your Mac has been assigned the display name of Wi-Fi, you can get the actual MAC address using the following command:


You should see output similar to what’s shown below:


If you want only the MAC address returned, you can use the following command:


You should see output similar to what’s shown below:


If you want only the MAC address returned with all the colons ( : ) removed, you can use the following command:


You should see output similar to what’s shown below:



文章来源: https://derflounder.wordpress.com/2024/12/04/reading-actual-wi-fi-hardware-mac-address-on-macos-sequoia/
如有侵权请联系:admin#unsafe.sh