ubuntu系统复制到其他地方或克隆后,如何正确修改IP及MAC地址的解决方案(图文详解)

修改ip地址

 

永久修改MAC地址

  方法一:

    1)编辑“/etc/init.d/rc.local”文件(sudo gedit /etc/init.d/rc.local)

    2)在此配置文件的最后面加上如(Ubuntu:修改网卡的MAC地址)的修改命令:

 

方法二:

  1)编辑“/etc/network/interfaces”文件(sudo gedit /etc/network/interfaces)

  2)在此配置文件中找到“iface eth0 inet static”行,在其后面加上“hwaddress ether **:**:**:**:**:**”,如何没有这一行,则自己手动完整添加

 

原文地址:https://www.cnblogs.com/zlslch/p/7941131.html