- 論壇徽章:
- 0
|
本帖最后由 fwhkggyn 于 2012-06-25 15:10 編輯
OS:rhel5.7
網(wǎng)卡:eth0,eth1,eth2,eth3
預(yù)計(jì):
將eth0和eth3綁定為bond0(mode=1)
將eth1和eth2綁定為bond1(mode=1)
配置如下:
modprobe.conf:
- alias bond0 bonding
- alias bond1 bonding
- options bonding max_bonds=2
復(fù)制代碼 ifcfg-bond0:
- DEVICE=bond0
- BOOTPROTO=none
- ONBOOT=yes
- IPADDR=192.168.56.201
- NETMASK=255.255.255.0
- GATEWAY=192.168.56.1
- BONDING_OPTS="mode=1 miimon=100 primary=eth0"
復(fù)制代碼 ifcfg-eth0:- DEVICE=eth0
- BOOTPROTO=none
- ONBOOT=yes
- MASTER=bond0
- SLAVE=yes
復(fù)制代碼 ifcfg-eth3:- DEVICE=eth3
- BOOTPROTO=none
- ONBOOT=no
- MASTER=bond0
- SLAVE=yes
復(fù)制代碼 ifcfg-bond1:- DEVICE=bond1
- BOOTPROTO=none
- ONBOOT=no
- IPADDR=192.168.57.201
- NETMASK=255.255.255.0
- NETWORK=192.168.57.0
- BROADCAST=192.168.57.255
- BONDING_OPTS="mode=1 miimon=100 primary=eth1"
復(fù)制代碼 ifcfg-eth1:- DEVICE=eth1
- BOOTPROTO=none
- ONBOOT=yes
- MASTER=bond1
- SLAVE=yes
復(fù)制代碼 ifcfg-eth2:- DEVICE=eth2
- BOOTPROTO=none
- ONBOOT=no
- MASTER=bond1
- SLAVE=yes
復(fù)制代碼 ---------------------------------上面為標(biāo)準(zhǔn)配置,可供大家參考----------------------------------------
現(xiàn)象:
bond0正常
bond1出現(xiàn)異常:
若拔掉eth1口的網(wǎng)線(xiàn),會(huì)看到eth2口跳到bond1,但此時(shí)無(wú)法ping通192.168.57.201
故障原因已經(jīng)找到,與交換機(jī)的拓?fù)溆嘘P(guān)系.bonding為正確配置,可供參考
|
|