- 论坛徽章:
- 0
|
本帖最后由 fwhkggyn 于 2012-06-25 15:10 编辑
OS:rhel5.7
网卡:eth0,eth1,eth2,eth3
预计:
将eth0和eth3绑定为bond0(mode=1)
将eth1和eth2绑定为bond1(mode=1)
配置如下:
modprobe.conf:
- alias bond0 bonding
- alias bond1 bonding
- options bonding max_bonds=2
复制代码 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"
复制代码 ifcfg-eth0:- DEVICE=eth0
- BOOTPROTO=none
- ONBOOT=yes
- MASTER=bond0
- SLAVE=yes
复制代码 ifcfg-eth3:- DEVICE=eth3
- BOOTPROTO=none
- ONBOOT=no
- MASTER=bond0
- SLAVE=yes
复制代码 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"
复制代码 ifcfg-eth1:- DEVICE=eth1
- BOOTPROTO=none
- ONBOOT=yes
- MASTER=bond1
- SLAVE=yes
复制代码 ifcfg-eth2:- DEVICE=eth2
- BOOTPROTO=none
- ONBOOT=no
- MASTER=bond1
- SLAVE=yes
复制代码 ---------------------------------上面为标准配置,可供大家参考----------------------------------------
现象:
bond0正常
bond1出现异常:
若拔掉eth1口的网线,会看到eth2口跳到bond1,但此时无法ping通192.168.57.201
故障原因已经找到,与交换机的拓扑有关系.bonding为正确配置,可供参考
|
|