To Change some MAC Address on MACOS:
Automatically pair the same set of Bluetooth Devices, while booting MACOS from 2 independent partitions:
(Each partition contains the whole MACOS)
IMHO: Better, Alternative Solution, if you please:
The real, hardware MAC Address is a randomly generated, practically globally unique number baked into each communication device's ROM, so it can be only changed in your system by swapping that device for another one. In fact, my best advice to you is spend a little over $2 on a brand new USB Bluetooth 5.0 transmitter(/receiver) dongle, or 2 of them, and all you need to do is use one for each of your setups. As a free bonus, depending on your current Bluetooth version, this cheap solution would give you all the nice Bluetooth 5.0, 4.x, 3.x,... features.
Nah, let's just do it anyway (because we can?):
If you however still want to play with spoofing, please read on.
In many casesI presume that your partitions both contain the entire MACOS, and they do not share any system manufactures allow spoofing, or software-based reassigning of hardware MAC addressesstorage space. This is how it can be accomplished in MACOSI recommend simply to:
- Be careful! Changing Hardware IDs like: MAC address (Media Access Control address) can lead to unexpected side effects, depending on your system and user software configurations Setup all the Bluetooth devices after booting with partition 1. You may, for example loose
- Copy the ability
~/Library/Preferences/com.apple.Bluetooth.plist
file to use certain software that uses MAC address for unique licensinga USB drive.
- Always record your current configuration using email, message, printout or other means, so the later viewing does not depend on the system you are currently changingBoot from partition 2. In Terminal, enter
- Replace the commandpartition 2
networksetup -listallhardwareports~/Library/Preferences/com.apple.Bluetooth.plist
that should give you output similar to this:with the file from the USB drive.
$ networksetup -listallhardwareports
Hardware Port: Ethernet
Device: en0
Ethernet Address: c4:ff:ff:0c:cc:2a
# ... other devices may be listed on your system here ...
Hardware Port: Bluetooth PAN
Device: en2
Ethernet Address: 60:ff:4b:07:ff:e8
Repeating this JIC: Copy the output from Terminal, and persist it, so you can easily retrieve it later, in case you would desire to undo the changes. (Email / Message / Printout...) Let me know if this worked out for you.
- Pick the interface that you want to change the MAC address for from your Terminal output from step 2, and use the
ifconfig <Interface> ether XX:XX:XX:XX:XX:XX
command in Terminal to make the change. So theoretically, to increase the Bluetooth MAC address from my listing by 1, the command should be: ifconfig en2 ether 60:ff:4b:07:ff:e9
- this would unfortunately most likely result in following system reply: ifconfig: interface en2 does not exist
- not what we desired...