Chinaunix首页 | 论坛 | 博客
  • 博客访问: 310205
  • 博文数量: 126
  • 博客积分: 7051
  • 博客等级: 少将
  • 技术积分: 1425
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-20 13:21
文章分类

全部博文(126)

文章存档

2008年(126)

我的朋友

分类: LINUX

2008-04-22 16:40:51

   



将eth1变为eth0
以前的时候有两块网卡,主板集成的8139是eth1,PCI插槽上的Intel e100是eth0;后来将e100拿掉之后,发现系统的网卡还是显示eth1,郁闷!

硬 件设备的识别与侦测在2.6中都是使用udev来实现的,到/etc/udev/rules.d中,修改z25_persistent- net.rules,将eth1网卡mac指定的名字改为eth0,这样再修改/etc/network/interfaces文件中的网络配置,重启 udev和networking就可以了。
fisherman:/etc/udev/rules.d# /etc/init.d/udev restart
Stopping the hotplug events dispatcher: udevd.
Starting the hotplug events dispatcher: udevd.
fisherman:/etc/udev/rules.d# /etc/init.d/networking restart
Reconfiguring network interfaces...done.
fisherman:/etc/udev/rules.d#

网卡的名字就改为eth1了,hoho!
阅读(654) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:(网上收集)linux双网卡绑定

给主人留下些什么吧!~~