`
xinjiang
  • 浏览: 54621 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Ubuntu:永久修改网卡的MAC地址

阅读更多

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

有时也会一开机并不起作用,此时就要关闭网络连接,然后再打开,上述方法的配置文件就生效了。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics