Chinaunix首页 | 论坛 | 博客
  • 博客访问: 101948021
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-18 22:21:43

ubuntu中修改网卡mac地址

临时修改
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
/sbin/ifconfig eht0 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

阅读(852) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~