临时修改:
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
仅作为个人记录知识之用
![](http://img.zemanta.com/pixy.gif?x-id=7f030f6e-597c-8052-973b-bf7fbfa06e0f)