标题: 在gentoo中修改网卡的interface name [打印本页] 作者: fengaas 时间: 2007-09-05 18:01 标题: 在gentoo中修改网卡的interface name
由于,机器主板和电源出了问题,各换了一个,尤其是电源,居然提供的接口还不够,不得已又买了三根一分二的转接线。
换上主板之后,网卡的识别上就出了问题,原来是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.