Chinaunix首页 | 论坛 | 博客
  • 博客访问: 380922
  • 博文数量: 109
  • 博客积分: 5045
  • 博客等级: 大校
  • 技术积分: 1199
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-08 14:47
文章分类

全部博文(109)

文章存档

2017年(1)

2012年(5)

2011年(10)

2010年(1)

2009年(13)

2008年(29)

2007年(6)

2006年(44)

我的朋友

分类: LINUX

2007-09-05 18:01:16

由于,机器主板和电源出了问题,各换了一个,尤其是电源,居然提供的接口还不够,不得已又买了三根一分二的转接线。

换上主板之后,网卡的识别上就出了问题,原来是eth0和eth1,现在变成 了eth0_rename,eth1,eth3,这里没有eth2,还是到了后面才知道,原本还应该有一个网卡的,后来被我拔掉拿到别的机器上去了,这里却占了一个位置。

在google上搜索eth0_rename找到了几个帖子,内容如下。

Do you have ifrename installed? If yes, just get rid of it and run
/lib/udev/write_net_rules instead; this will generate udev-based persistent
naming rules for your network devices; you can modify them by editing the file
/etc/udev/rules.d/z25_persistent-net.rules. What to edit should be pretty clear;
if not, have look at this[0] howto.
首先,确保没有安装:ifrename。
第二,用/lib/udev/rules.d/write_net_rules命令新生成一个/etc/udev/rules.d/XX_persistent-net.rules文件。
第三,根据需要修改此文件,里面有对应于设备的interface name.

找到这些内容很不容易,因为一般搜索到的都是些ifconfig使用方面的信息。

另外,针对RedHat系统,其使用的是/etc/sysconfig/XXXX/XXX.eth0文件的方式,不过对于我这里的gentoo环境,显然是不合适的。
阅读(1501) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~