1 개요
리눅스 본딩 구성 (같은 게이트웨이 사용)
- eth0 + eth1 → bond0
- eht2 + eth3 → bond1
- bond0과 bond1이 같은 게이트웨이를 사용하는 경우
- 아래 파일들 참고하여 설정
2 /etc/modprobe.d/bonding.conf
- 다음 내용으로 파일 생성[1]
alias bond0 bonding
alias bond1 bonding
3 /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
4 /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
5 /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
MASTER=bond1
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
6 /etc/sysconfig/network-scripts/ifcfg-eth3
DEVICE=eth3
MASTER=bond1
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
7 /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.0.101
NETMASK=255.255.255.0
BONDING_OPTS="mode=1 miimon=100"
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
8 /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
IPADDR=192.168.0.102
NETMASK=255.255.255.0
BONDING_OPTS="mode=1 miimon=100"
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
9 . vi /etc/sysconifg/network-scripts/route-bond0 (service ip가 routing table에 추가되어있다면)
10. service network restart
**오류 시
'Linux > Work' 카테고리의 다른 글
Swap 메모리 증설 (0) | 2024.10.28 |
---|---|
LV 용량감설 (1) | 2024.10.28 |
LVM 구성 & Disk 볼륨증설 (2) | 2024.10.23 |
Firmware Update (0) | 2024.10.23 |
DB 절체 (0) | 2024.10.23 |