Mar
19
2023
ubnt修改mac地址
vi /etc/persistent/rc.poststart #编辑rc.poststart 文件
#写入以下
ifconfig ath0 down
ifconfig ath0 hw ether 00:15:6d:80:55:66
ifconfig ath0 up
ifconfig eth0 down
ifconfig eth0 hw ether 00:15:6d:79:55:66
ifconfig eth0 up
ifconfig eth1 down
ifconfig eth1 hw ether 00:15:6d:78:55:66
ifconfig eth1 up
chmod +x /etc/persistent/rc.poststart #给予执行权限
cfgmtd -w -p /etc/ #修改参数后保存命令
reboot #重启
最活跃的读者