macOS 目前有什么方案可以修改 mac 地址?

2019 年 10 月 16 日
 R1nG

版本:10.14.6

因工作需要,所以需要修改本机的 mac 地址,尝试使用 sudo ifconfig 网卡 ether xx:xx:xx:xx:xx 不生效,网上找了一些方案,测试都无效,求助各位大佬。

8348 次点击
所在节点    macOS
7 条回复
zer
2019 年 10 月 16 日
我也是,试了很多方法,改不了
最终只能加个路由器,然后改路由器的 MAC 地址
wangkun025
2019 年 10 月 16 日
scukmh
2019 年 10 月 17 日
10.13.6 可以改,所以我不升级了,感谢提醒。
zer
2019 年 10 月 17 日
https://github.com/feross/SpoofMAC/issues/87
看这个帖子最终结论是升级到 Catalina 就可以继续改 mac 地址了
R1nG
2019 年 10 月 18 日
@zer 使用了这个工具好像也不行的呢。。至于升级的话我再观望一阵看看。
cyru1s
2021 年 3 月 18 日
系统:Big Sur (11.1)

[方案 1] 多试几次就好了,但是期间需要空一定时间,使得命令在 WiFi 断开的状态下执行:
ifconfig en0 ether $mac
sleep 0.2
ifconfig en0 ether $mac
sleep 0.2
ifconfig en0 ether $mac

[方案 2] 使用 sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z 断开 WiFi 后执行一次 ifconfig en0 ether $mac 操作即可。
onlyu
2021 年 12 月 3 日
试试这个命令,在最新片下可以执行成功:
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
sudo ifconfig en0 ether 你的 mac 地址
networksetup -detectnewhardware

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/610075

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX