首先必须关闭网卡设备,否则会报告SIOCSIFHWADDR:
没有那个设备,无法更改。
sudo /sbin/ifconfig eth0 down
sudo /sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE (你的MAC地址)sudo /sbin/ifconfig eth0 up
首先必须关闭网卡设备,否则会报告SIOCSIFHWADDR:
没有那个设备,无法更改。
sudo /sbin/ifconfig eth0 down
sudo /sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE (你的MAC地址)