RHEL5网卡绑定

  
    # grep bond0 /etc/modprobe.conf
    alias bond0 bonding

    # cat /etc/sysconfig/network-scripts/ifcfg-eth1
    DEVICE=eth1
    BOOTPROTO=none
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes

    # cat /etc/sysconfig/network-scripts/ifcfg-eth2
    DEVICE=eth2
    BOOTPROTO=none
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes
  
    # cat /etc/sysconfig/network-scripts/ifcfg-bond0
    DEVICE=bond0
    BOOTPROTO=dhcp
    ONBOOT=yes
    BONDING_OPTS="mode=4 miimon=100 lacp_rate=1"
   启动bond0
    # ifup bond0

[root@lmsin ~]# cat  /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 08:00:27:80:bd:0a
Slave queue ID: 0

Slave Interface: eth3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 08:00:27:0c:b8:a7
Slave queue ID: 0
[root@lmsin ~]#

前一篇文章的设置,mode=0没有生效,这里生效了。。。


你可能感兴趣的:(网卡,bonding,网卡绑定)