NIC Bonding

eth2==
          ||||==> bond0---->>[]
eth3==


----------------------------------------------------------------------------------------------------
 [root@server2 network-scripts]#cat  ifcfg-eth2   
DEVICE=eth2
HWADDR=00:0c:29:5b:39:1d
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
##########################################
MASTER=bond0
SLAVE=yes

##########################################
#IPADDR=192.168.213.112
#NETMASK=255.255.255.0
#GATEWAY=192.168.213.2
#DNS1=8.8.8.8
[root@server2 network-scripts]#
[root@server2 network-scripts]# cat  ifcfg-eth3   
DEVICE=eth3
HWADDR=00:0c:29:5b:39:27
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes

[root@server2 network-scripts]#
[root@server2 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPV6INIT=no
USERCTL=no
IPADDR=192.168.213.112
NETMASK=255.255.255.0
GATEWAY=192.168.213.2
DNS1=8.8.8.8

###below are setting for mode0 (mode zero)#####
#mode=0  for round robin and mode=1 for active backup
# miimon = n milliseconds  to check if any eth is down

BONDING_OPTS="mode=0  miimon=100"


 [root@server2 network-scripts]# watch -n .1 cat /proc/net/bonding/bond0

No comments:

Post a Comment