[Linux] nmcli 명령어로 본딩(bonding) 구성하기

본딩이란

여러개의 NIC(랜카드)을 논리적으로 묶어서 한 개의 NIC의 개수만큼 대역폭을 확장하는 기술

본드 인터페이스 생성

  • 연경 이름을 bond0, 인터페이스 이름도 bond0으로 설정

    nmcli connection add type bond con-name bond0 ifname bond0
  • 생성된 본드 확인

    nmcli connection 

자세한 정보 확인

nmcli connection show bond0

bond 모든 변경

  • Round Robin에서 Active Backup으로 변경
    • 지원되는 모드는 기본 라운드 로빈(balance-rr), 활성 백업(active-backup), XOR(balance-xor), 브로드캐스트(broadcast), 802.3ad(802.3ad), 적응형 전송 로드 밸런싱(balance-tlb) 및 적응형 로드 밸런싱(balance-alb)입니다.
      nmcli connection modify bond0 bond.options "mode=active-backup"

bond 인터페이스에 인터페이스 링크 추가

  • 네트워크 장치를 먼저 확인합니다.

    nmcli devie

  • eno5,eno7 인터페이스를 본드 인터페이스 그룹의 링크로 추가합니다.

    nmcli c add type ethernet slave-type bond con-name bond0-if1 ifname en05 master bond0
    nmcli c add type ethernet slave-type bond con-name bond0-if2 ifname en06 master bond0
  • 네트워크 장치 다시 확인

    nmcli devie


bond 인터페이스에 IP 할당

  • 먼저 bond 인터페이스를 up시킵니다

    nmcli connection up bond0
  • ip 및 gw 설정

    nmcli nmcli connection modify bond0 ipv4.address 10.10.10.10/24 ipv4.gateway 10.10.10.1 ipv4.method manual
  • 확인

    ip addr

댓글

Designed by JB FACTORY

loading