Home>Article>Operation and Maintenance> How to change mac address in Apple system
Requirements:
In certain circumstances, we need to access the Internet with a designated network card.
(Learning video sharing:Programming video)
Specific method:
networksetup -listallhardwareports 查看当前所有端口Mac地址 $ networksetup -listallhardwareportsHardware Port: Wi-FiDevice: en0Ethernet Address: 38:f9:d3:b3:1a:50
Find the WIFI network port: default en0, e4:ce:8f :32:51:82 is the target Mac address
$sudo ifconfig en0 ether e4:ce:8f:32:51:82 //修改 $ifconfig en1 | grep ether //查看是否修改成功,这里修改的是虚拟Mac,看硬件是看不出来的
Restart the computer and restore the mac address
Related recommendations:macos system
The above is the detailed content of How to change mac address in Apple system. For more information, please follow other related articles on the PHP Chinese website!