Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5708837
  • 博文数量: 675
  • 博客积分: 20301
  • 博客等级: 上将
  • 技术积分: 7671
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 16:15
文章分类

全部博文(675)

文章存档

2012年(1)

2011年(20)

2010年(14)

2009年(63)

2008年(118)

2007年(141)

2006年(318)

分类: LINUX

2007-09-15 11:02:03

以前的时候有两块网卡,主板集成的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!
阅读(3523) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~