Chinaunix首页 | 论坛 | 博客
  • 博客访问: 207458
  • 博文数量: 127
  • 博客积分: 1998
  • 博客等级: 上尉
  • 技术积分: 1432
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-07 16:41
文章分类

全部博文(127)

文章存档

2014年(41)

2013年(1)

2012年(85)

分类: LINUX

2012-02-17 19:33:34

方法一:
sudo gedit /etc/network/interfaces 
将iface eth0 inet static后面添加一行 
hwaddress ether 00:00:00:00:00:00 (你的MAC地址)


方法二:
首先必须关闭网卡设备,否则会报告系统忙,无法更改。
sudo /sbin/ifconfig eth0 down 
sudo /sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE (你的MAC地址)
sudo /sbin/ifconfig eht0 up

网卡的 MAC 地址更改就完成了 如果计算机每次启动都要修改mac地址 修改你的源,并升级到最新的系统: 
sudo gedit /etc/init.d/rc.local
增加 
sudo /sbin/ifconfig eth0 down
sudo /sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE (你的MAC地址)
sudo /sbin/ifconfig eth0 up 

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