LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 760|回复: 4

救急!请高手指教!

[复制链接]
发表于 2007-3-22 15:04:18 | 显示全部楼层 |阅读模式
华硕NCL-DE/SCSI主板带有两块Brodcom网卡,在在安装网众LINUX时提示找到Brodcom的驱动"tg3",提示输入ETH0、ETH1的IP地址,安装好后网众自己的无盘软件要重启动一次才能引导无盘工作站,以前在使用中遇到过8139、INTEL网卡分
别被指定为ETH0、ETH1也不能引导但只要在modules.conf文件中把两者的驱动模块调换顺序就可以解决了,问题是Brodcom的网卡在modules.conf文件中只有一个
模块可以驱动两个网卡,加载时不知那一块(MAC只有最后一个数不同)被指定为ETH0了,怎样才能调整ETH0、ETH1的顺序。

可不可以在开机就按MAC地址指定网卡地址,请大家帮忙,(偶是菜鸟)
 楼主| 发表于 2007-3-23 17:19:54 | 显示全部楼层
没人回,自己回个顶上去。
回复 支持 反对

使用道具 举报

发表于 2007-3-24 00:21:39 | 显示全部楼层
不太明白你的意思。我在TUX上看到有一段和你的情况差不多,摘下来给你看看,或许能帮得上。

Some computers have two network cards built into the motherboard. You
probably use only one of them. Sometimes Linux makes a mistake and changes the device names for the network cards. First it makes the one you
use eth2, and the next time you boot, it makes the same card eth3. I give these examples because Linux sometimes thinks the network cards are eth2 and eth3, even if you have only two network cards. This does not make sense, but it is true. It should see the two cards as eth0 and eth1 even if it confuses them, but it doesn’t always do that. Sometimes it sees them as eth2 and eth3.
Say your computer sees them as eth2 and eth3. You configure eth2. The next
time you boot it thinks the same card is eth3. Now your network does not work, because it sets up the card that does not have a cable connection. This is why your network stops working. If you know how to change your BIOS
settings, you may be able to disable one of the network cards. This fixes the problem sometimes. Here is another way to fix the problem. Configure eth2 and eth3 to be the same. I assume your computer is using eth2 and eth3. If it is using two other device names, like eth0 and eth1, configure them the same, but my example is eth2 and eth3.

Install the package called ifplugd with the command:

$ sudo apt-get install ifplugd

You must edit a system configuration file now. Do a command like the following.
(I use gedit in my example because this happens on Ubuntu many times. You can use your favorite editor instead of gedit.)

$ sudo gedit /etc/default/ifplugd

Look in the file and find this:

INTERFACES=""
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"

Change the INTERFACES line so that it looks like this:

INTERFACES="eth2 eth3"

ifplugd will look for a cable on eth2 and eth3. It will configure the interface that has a cable connected. You have only one cable connected. It does not matter if Linux thinks it is eth2 or eth3. ifplugd will configure the one that has a cable, so maybe one time it will configure eth2 and the next time it will configure eth3. It does not matter. Now you should have a network that works every time you boot. This will stop working if you disable one of the network cards. So do not do that.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-24 10:33:51 | 显示全部楼层
谢谢,大致意思对了,精细翻译中。

不过我不太懂LINUX,看这个配置文件和SLACK的不太一样。

请继续指点。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-24 18:19:49 | 显示全部楼层
我想问题应该这样解决,在启动时就让网卡按MAC把IP固定下来,请高手指点下怎么配置。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表