benhuan


临时修改:
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
仅作为个人记录知识之用


分类:

技术点:

相关文章:

  • 2021-12-16
  • 2021-12-23
  • 2021-11-29
  • 2021-12-02
  • 2021-07-02
  • 2021-12-12
  • 2021-05-12
  • 2021-12-02
猜你喜欢
  • 2021-12-02
  • 2021-10-31
  • 2022-12-23
  • 2021-07-24
  • 2021-12-02
相关资源
相似解决方案