본문 바로가기

리눅스

리눅스 bonding

OS : centos 6.0 x86_64

 

[root@upload network-scripts]# cat ifcfg-eth2
DEVICE="eth2"
NM_CONTROLLED="yes"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

##############################################################
[root@upload network-scripts]# cat ifcfg-eth3
DEVICE="eth3"
NM_CONTROLLED="yes"
ONBOOT="yes"
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

##############################################################
[root@upload network-scripts]# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.58
NETMASK=255.255.255.0
NOZEROCONF=yes
BONDING_OPTS="mode=0 miimon=100"


##############################################################
[root@upload network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

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
Link Failure Count: 0
Permanent HW addr: 44:1e:a1:37:4c:3c

Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: 44:1e:a1:37:4c:3a

##############################################################
[root@upload network-scripts]# cat /etc/modprobe.d/bonding.conf
alias bond0 bonding

##############################################################
[root@upload network-scripts]# uname -a
Linux upload 2.6.32.DMI #1 SMP Fri Oct 7 10:08:48 KST 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@upload network-scripts]# cat /etc/redhat-release
CentOS Linux release 6.0 (Final)

##############################################################
[root@upload network-scripts]# lsmod
Module                  Size  Used by
bonding               116990  0

##############################################################
vi /etc/sysconfig/network-scripts/route-bond1
route add -net 192.168.100.0 gw 192.168.100.1 netmask 255.255.255.0 dev bond0


##############################################################
mode = 0 (default. Round Robin) : 모든 인터페이스가 사용됨
       1 (Activate-backup) : 장애극복모드. 한번에 한개의 인터페이스만 사용되다가 장애 발생시 다른 인터페이스 사용)
       3 (broadcast) : 장애극복모드. 모든 패킷이 모든 슬레이브 인터페이스에서 브로드캐스됨.

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

'리눅스' 카테고리의 다른 글

16TB 이상 파일시스템 만들기  (0) 2013.12.23
vsftpd.conf 설정 옵션  (0) 2013.03.22
[etc] ibm x3550 m3 장비에 centos 5.3 설치시 오류  (0) 2012.02.10
[Linux] 리눅스 bonding  (0) 2012.01.03
[Linux] NFS (network file system)  (0) 2012.01.03