修改Ubuntu16.0.4的Mac地址。
首先查看网卡名称 ifconfig -a
该命令可以查看Ip地址,红框标记的就是网卡名。
在ubuntu下更改MAC地址的命令是ifconfig(和windows下的ipconfig还是比较相似的),如果要更改MAC地址,可以新开一个终端,依次使用以下命令:enp0s25 根据自己的电脑不同
sudo ifconfig enp0s25 down #(停用网卡)
sudo ifconfig enp0s25 hw ether XX:XX:XX:XX:XX:XX ##(需要更改的MAC地址)
sudo ifconfig eth0 up ###(启用网卡)
参考链接:http://blog.csdn.net/halazi100/article/details/18282191