码迷,mamicode.com
首页 > 系统相关 > 详细

ZZ : Ubuntu:永久修改MAC地址

时间:2016-05-11 09:38:05      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

方法一:

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

    2)在此配置文件的最后面加上如(Ubuntu:修改网卡的MAC地址)的修改命令:
         ## 修改 eth0 的 MAC 地址
         sudo ifconfig eth0 down
         sudo ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
         sudo ifconfig eth0 up

 

方法二:

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

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

ZZ : Ubuntu:永久修改MAC地址

标签:

原文地址:http://www.cnblogs.com/PhoenixMY/p/5480668.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!