bonding 설정
1.1. bonding 설정
bonding은 onboard NIC와 extend NIC를 한쌍으로 구성한다.
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
1.1.1. bonding 구성
<예시>
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
IPV6INIT=no
SLAVE=yes
<예시>
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
IPV6INIT=no
SLAVE=yes
<예시>
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=no
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.0
GATEWAY=xxx.xxx.xxx.xxx
RedHat 6.x에는 modprobe.conf 파일이 없으므로 “bonding.conf” 파일을 생성해 준다.
<예시>
# vi /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bonding mode=1 miimon=100
alias bond1 bonding
options bonding mode=1 miimon=100
1.1.2. GATEDEV 추가
“/etc/sysconfig/network” 파일에 GATEDEV 추가
<예시>
# vi /etc/sysconfig/network
GATEDEV=bond0 // 추가
1.1.3. 설정 적용 및 서비스 재시작
<예시>
# modprobe bonding
# lsmod | grep bonding
# service network restart
1.1.4. bonding 설정 확인
<예시>
# ifconfig
bond0 // ip 설정 확인, RUNNING MASTER 확인
eth0 // RUNNING SLAVE 확인
eth1 // RUNNING SLAVE 확인