Centos 7 Network Bonding 설정
Centos 7 Network Bonding 설정 방법
Network Interface eth0, eth1 이 있다고 가정
eth0, eth1 autoconnect 설정 해제
#nmcli connection modify eth0 connection.autoconnect no
#nmcli connection modify eth1 connection.autoconnect no
bond0 interface 추가
#nmcli connection add type bond con-name bond0 ifname bond0 mode active-backup
Master Interface bond0 에 Slacve interface eth0, eth1 추가
#nmcli connection add type bond-slave ifname eth0 master bond0
#nmcli connection add type bond-slave ifname eth1 master bond0
IP, G/W, DNS 설정
#nmcli connection modify bond0 ipv4.method manual connection.autoconnect yes ipv4.addresses 192.168.0.10/24 ipv4.gateway 192.168.0.1 ipv4.dns "168.126.63.1 8.8.8.8"
Bonding Options 추가
#nmcli connection modify bond0 +bond.options primary=eth0 +bond.options miimon=100 +bond.options updelay=0 +bond.options. downdelay=0