OS

2024.07.01 15:44

CentOS 7 bonding 설정

  • 비아웹 오래 전 2024.07.01 15:44
  • 88
    0

안녕하세요 

호스팅 전문기업 비아웹입니다.

 

CentOS 7 환경에서 bonding 구성에 대한 기록 남깁니다.

 

1. network enable/start 및 NetworkManager stop/disable 

systemctl enable network

systemctl start network

 

systemctl stop NetworkManager

systemctl disable NetworkManager

 

 

2. bonding 대상 네트워크 선택 (최소 2개 이상)

 - 테스트 환경 ens33 / ens37

 

3. 기존 network 설정

- ens33

bond01.JPG

 

- ens37

bond02.JPG

 

 4. bonding 모듈 추가 및 확인 

# 모듈 추가

modprobe --first-time bonding

 

# 확인

lsmod | grep bond

 bond03.JPG

 

5. bonding 네트워크 설정 

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

DEVICE=bond0

NAME=bond0

TYPE=Bond0

ONBOOT=yes

BOOTPROTO=static

USERCTL=no

NM_CONTROLLED=no

IPADDR=192.168.20.18

NETMASK=255.255.255.0

GATEWAY=192.168.20.1

DNS1=8.8.8.8

DNS21=1.1.1.1

BONDING_MASTER=yes

BONDING_OPTS="mode=1 miimon=100"

bond08.JPG

 

6. bonding 에 추가될 network device 정보 수정 (대상 device 모두) 

# ip 관련 정보 및 dns 주석후 

MASTER=bond0

SLAVE=yes 

bond05.JPG

 

bond06.JPG

 

7. bonding 동작

- active backup mode 

# network 재시작

systemctl restart network

 

# bonding 상태 확인

cat /proc/net/bonding/bond0 

 

cf. 본딩 모드 설명

 

 

이상과 같이 CentOS 환경에서의 네트워크 이중화 방법인 bonding 에 대해 정리하였습니다.

 

감사합니다.

서버호스팅 전문기업 비아웹

  • 공유링크 복사

    댓글목록

    등록된 댓글이 없습니다.