红联Linux门户
Linux帮助

LINUX5 双网卡绑定加载bond0失败

发布时间:2010-04-07 23:52:17来源:红联作者:hdandan
我的系统是LINXU5 企业版

有两块网卡一个是RTL8139一个是8169芯片的。

/etc/modprobe.conf配置添加如下:

alais bond0 bonding
options bond0 miimom=100 mode=1

###############################

bond0配置如下:

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
USERCTL=no


eth0如下:

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=yes


eth1如下:

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=yes


################################

重启后,为什么加载不到bond0呢,启动时提示bond0 failed
但是eth0和eth1都识别到。

以前在RHEL3配置过是可以。现在为什么不行呢?请问一下!
文章评论

共有 7 条评论

  1. hdandan 于 2010-04-13 10:56:45发表:

    在/etc/rc.d/rc.local 加 ifenslave bond0 eth0 eth1
    是要安装ifenslave包的吧。
    之前我也有配置过这条,同样不启作用。不知系统有没装ifenslave,不知是否和这样有关系。
    为什么要加这条配置呢?以前的bond设置都不用的啊?

  2. yaoze85106 于 2010-04-09 10:14:16发表:

    运行ifenslave bond0 eth0 eth1 或者在/etc/rc.d/rc.local 下加入/sbin/ifenslave bond0 eth0 eth1

  3. a495620358 于 2010-04-08 23:21:02发表:

    是不是网关啊~???

  4. hdandan 于 2010-04-08 22:46:52发表:

    lais bond0 bonding
    options bond0 miimom=100 mode=1
    ----------------
    把上面的改成
    alias bond0 bonding
    option bonding mode=1 miimon=100

    也不行啊!!!!

  5. hdandan 于 2010-04-08 11:10:50发表:

    USERCTL=no改过不行。
    晚上回去改一下options项。再回大家
    谢谢帮顶。

    谁有心再去帮我的另一个贴子吧,关于LINUX5配置NTFS模块的。到现在还没有有建设性的回复
    先谢谢了!

  6. xxmdragon 于 2010-04-08 09:45:13发表:

    alais bond0 bonding
    options bond0 miimom=100 mode=1
    ----------------
    把上面的改成
    alias bond0 bonding
    option bonding mode=1 miimon=100
    看看
    同时把eth0和eth1里面的USERCTL=yes改成USERCTL=no

  7. yreqab 于 2010-04-08 08:37:29发表:

    帮顶下