Home >Operation and Maintenance >Mac OS >How to modify the network card mac address in mac system

How to modify the network card mac address in mac system

王林
王林forward
2020-11-19 15:47:395455browse

How to modify the network card mac address in mac system

具体步骤如下:

1、首先打开“终端“,运行这个命令生成一个新的MAC网卡地址:

openssl rand -hex 6 | sed 's/..../\1:/g; s/.$//'

2、然后执行命令,断开Airport 无线网卡连接

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z

3、输入修改mac地址的命令:

sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx

将你要修改的MAC地址代替xx:xx:xx:xx:xx:xx,将你要修改的网卡代替en0

4、然后输入命令重连网卡即可

networksetup -detectnewhardware

相关推荐:macos

The above is the detailed content of How to modify the network card mac address in mac system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete