본문 바로가기

리눅스

[Linux] 리눅스 bonding

리눅스 bonding 설정

OS : centos 6.0 64bit

[bonding 설정]

### interface 설정
cd /etc/sysconfig/network-scripts/
[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"

## modprobe 설정
[root@upload /]# cat /etc/modprobe.d/bonding.conf
alias bond0 bonding