$ sudo ifconfig eth0 down #断开网络连接 $ sudo ifconfig eth0 hw ether D4:BE:D9:88:A1:34 # 更改mac $ sudo ifconfig eth0 up #连接网络