ubuntu修改网卡mac地址


临时修改:
ifconfig eth0 down
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up
或者
ip link set eth0 down
ip link set eth0 address xx:xx:xx:xx:xx:xx
in ling set eth0 up
永久修改:

可以将上面几行放入 /etc/rcS.d/rc.local 文件 ,rc.local中的bash命令在启动系统时会自动执行
或者

直接编辑 /etc/network/interfaces 文件
pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
摘自http://spiritfrog.iteye.com/blog/209847
仅作为个人记录知识之用


posted @ 2011-09-27 00:29  benhuan  阅读(626)  评论(0编辑  收藏  举报