临时方案:
>> ifconfig wlan0 down
>> ifconfig wlan0 hw ether 00:00:00:00:00:11 (注意这是十六进制的)
>> ifconfig eth0 up
然后ifconfig查看是否修改成功。
永久方案:
修改 /etc/network/interfaces 网卡配置文件,添加:pre-up ifconfig eth0 hw ether 00:00:00:00:00:11
如果想恢复则注释或者删除此行即可。
重启网卡:>>/etc/init.d/networking restart ,然后ifconfig查看是否修改成功。