본문 바로가기

카테고리 없음

[linux] bonding

#vi /etc/modprobe.conf


alias bond0 bonding

alias bond1 bonding

options bonding miimon=100 mode=0 max_bonds=2


// 예전과 비슷하게 options 를 bonding에따라 각 각 주면 안된다..



//max_bonds=2

원래 default 1개의 본딩만 지원하지만 이렇게 해주면 2개를 사용할 수 있다.

하지만 총 3개가지만 지원이 가능하다.


/etc/sysconfig/network-script/ifcfg-eth0

/etc/sysconfig/network-script/ifcfg-eth1

/etc/sysconfig/network-script/ifcfg-eth2

/etc/sysconfig/network-script/ifcfg-eth3


각각의 ifcfg-ethX 의 bonding  순서와 device 명만 바꾸어 주면 된다.


DEVICE=eth0 //device 명
USERCTL=no //사용자가 eth0 컨트롤못하게 금지
ONBOOT=yes //부팅시 active 시킵니다.
MASTER=bond0 //bonding 이름
SLAVE=yes //본딩의 하위 eth 설정
BOOTPROTO=none //dhcp 안함


이후의 설정은 같다.