본문 바로가기
OS-OE Knowledge/Linux-Unix KB

RHEL6 - Bonding

by 스쳐가는인연 2011. 5. 2.

RHEL6 리눅스에서 본딩하기~

/etc/sysconfig/network-scripts/ifcfg-eth<N>
DEVICE=eth<N>
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

/etc/sysconfig/network-scripts/ifcfg-bond<N>
DEVICE=bond<N>
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="mode=0|1 miimon=50"

>> 본딩 모드
mode=0 (balance-rr /round-robin)
mode=1 (active-backup)
mode=2 (balance-xor)
mode=3 (broadcast)
mode=4 (802.3ad)
mode=5 (balance-tlb)
mode=6 (balance-alb)

>> 옵션
ONBOOT=yes / 부팅시 자동으로 활성화
BOOTPROTO=none / static 구성
USERCTL=no / 유저가 컨트롤 할 수 없음 (root 만 허용)
NM_CONTROLLED=no / NetworkManager가 컨트롤 불가

/etc/modprobe.d/bonding.conf
alias bond<N> bonding

>> 과거에는 장치 알리어스 지정 위치가 /etc/modprobe.conf 파일이었음에 주목하자.

reference
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/Deployment_Guide/s2-networkscripts-interfaces-chan.html

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/Deployment_Guide/sec-Using_Channel_Bonding.html

/usr/share/doc/kernel-*/Documentation/netwoking/bonding.txt

만약 없다면,
yum install kernel-doc



반응형