선 밖에 선 자유인

Linux NIC Bonding 구성 본문

IT/System & Network

Linux NIC Bonding 구성

Hotman 2018. 2. 9. 18:12

[ CentOS 7 ] 


# modprobe --first-time bonding

# lsmod | grep bonding

bonding               141566  0


# vi /etc/sysconfig/network-scripts/ifcfg-bond0 

DEVICE=bond0

NAME=bond0

TYPE=Bond

BONDING_MASTER=yes

BONDING_OPTS="mode=active-backup primary=eth0 miimon=100 updelay=0 downdelay=0"

IPADDR=192.168.0.100

PREFIX=24

GATEWAY=192.168.0.1

DNS1=168.126.63.1

DNS2=168.126.63.2


# vi /etc/sysconfig/network-scripts/ifcfg-eth0

NAME=bond-slave-eth0

DEVICE=eth0

TYPE=Ethernet

BOOTPROTO=none

ONBOOT=yes

MASTER=bond0

SLAVE=yes


# vi /etc/sysconfig/network-scripts/ifcfg-eth1

NAME=bond-slave-eth1

DEVICE=eth1

TYPE=Ethernet

BOOTPROTO=none

ONBOOT=yes

MASTER=bond0

SLAVE=yes


# systemctl restart network



[ Ubuntu 16.04 ] 


# vi /etc/network/interfaces


auto lo

iface lo inet loopback


auto eth0

iface eth0 inet manual

bond-master bond0


auto eth1

iface eth1 inet manual

bond-master bond0


# The primary network interface

auto bond0

iface bond0 inet static

address 192.168.10.100

gateway 192.168.0.1

netmask 255.255.255.0

nameserver 168.126.63.1

mtu 9000

bond-miimon 100

bond-downdelay 200 

Comments