1、/sbin/ifconfig eth0 down
2、修改 MAC 地址命令是/sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
3、重新启用网卡/sbin/ifconfig eht0 up
上面的方法是开机状态,如果想固定改变MAC地址,在/etc/rc.local添加
ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE