logo

한국어

bonding (CentOS 7)

관리자 2017.12.22 21:45 조회 수 : 523

■ bonding 모듈 로드

modprobe --first-time bonding


■ /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
BONDING_OPTS="mode=active-backup primary=eno1 miimon=100 updelay=0 downdelay=0"
IPADDR=10.10.10.106
PREFIX=24
GATEWAY=10.10.10.254
DNS1=8.8.8.8
DNS2=8.8.4.4


■ /etc/sysconfig/network-scripts/ifcfg-eno1

NAME=bond-slave-eno1
DEVICE=eno1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes


■ /etc/sysconfig/network-scripts/ifcfg-eno2

NAME=bond-slave-eno2
DEVICE=eno2
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes


■ 적용
systemctl restart network


■ bonding 상태 체크
cat /proc/net/bonding/bond0