- LINUX

[Rocky] Bonding 설정(nmcli)






1. 버전

Rocky-9.2







2. 설명





2-1. Bonding 이란?

여러 개의 NIC(Network Interface card)를 논리적으로 하나로 묶어 NIC 개수만큼 대역폭을 확장하는 기술




2-2. Bonding Mode







3. Bonding





3-1. 인터페이스 생성 및 모니터링 주기 설정

※ miimon: 모니터링 주기를 가리키며 ms 단위임으로 1000으로 할 경우 1초 단위로 링크 모니터링 수행


# nmcli connection add type bond con-name bond0 ifname bond0 bond.options “mode=active-backup,miimon=1000”




3-2. 설정

# nmcli device status

DEVICE  TYPE      STATE                                  CONNECTION
ens32   ethernet  connected                              ens32
lo      loopback  connected (externally)                 lo
bond0   bond      connecting (getting IP configuration)  bond0
ens34   ethernet  disconnected                           --


# nmcli connection add type ethernet slave-type bond con-name bond0-ens32 ifname ens32 master bond0
# nmcli connection add type ethernet slave-type bond con-name bond0-ens34 ifname ens34 master bond0




3-3. IP 설정

# nmcli connection modify bond0 ipv4.addresses 192.168.204.220/24
# nmcli connection modify bond0 ipv4.gateway 192.168.204.254
# nmcli connection modify bond0 ipv4.dns 168.126.63.1
# nmcli connection modify bond0 ipv4.method manual




3-4. 적용

# nmcli connection down ens32
# nmcli connection down ens34
# nmcli connection up bond0
# nmcli device

DEVICE  TYPE      STATE                   CONNECTION
bond0   bond      connected               bond0
lo      loopback  connected (externally)  lo
ens32   ethernet  connected               bond0-ens32
ens34   ethernet  connected               bond0-ens34







4. 테스트





4-1. Active 확인

# cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v5.14.0-284.11.1.el9_2.x86_64

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: ens34
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: ens34
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c1:4d:e2
Slave queue ID: 0

Slave Interface: ens32
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:50:56:ad:3f:92
Slave queue ID: 0




4-2. Active 다운

# ifconfig ens34 down




4-3. Active 변경 확인

# cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v5.14.0-284.11.1.el9_2.x86_64

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: ens32
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: ens34
MII Status: down
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 00:0c:29:c1:4d:e2
Slave queue ID: 0

Slave Interface: ens32
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:50:56:ad:3f:92
Slave queue ID: 0



seuheu

댓글 보기

  • 설명 소중히 잘 보았습니다.
    저희가 Bonding 작업 중 수정 후 아래와 같이 저장하고 종료한 이후에 본딩설정 파일이 사라지는 문제로 계속 고민을 하고 있습니다.
    최초 구성하면 파일이 사라지지 않는데 파일을 수정하고 나면 사라지는 증상입니다.
    혹시 해결책을 아실 수 있으실지 해서 댓글로 문의 드립니다.

    • 댓글 남겨주시고 제가 설정한 방식으로 테스트를 진행해보았습니다.
      같은 문제는 발생하지 않아서 도움드리기 어려울 것 같습니다.

      최초구성 -> 재부팅 -> IP 변경 -> 재부팅

      위 방법으로 테스트 진행하였으며 아래 파일은 변경된 IP로 잘 적용 됩니다.
      /etc/NetworkManager/system-connections/bond0.nmconnection

최근 게시물

[Linux] Rocky Linux란 무엇인가?

1. 개요 Rocky Linux는 엔터프라이즈 환경에서 사용되는 RHEL(Red Hat Enterprise Linux)과 완전히 호환되는 오픈소스 Linux…

%일 전

[Hardware] Supermicro IPMIView 설치 및 사용법

https://youtu.be/XwG4jBWakzQ 1. 개요 Supermicro IPMIView는 Supermicro에서 제공하는 IPMI (Intelligent Platform Management Interface) 기반의 통합 관리…

%일 전

[Rocky 8.10] KVM NIC Bonding + Bridge 구성하기

1. 개요 이 문서는 두 개의 NIC (enp5s0f0, enp5s0f1)를 bonding(active-backup) 방식으로 구성하고, 해당 bond 장치를 브리지(br0) 와 연결하여 KVM 가상머신에서…

%일 전

[Rocky] KVM에서 NVIDIA GPU Passthrough 시 RmInitAdapter failed 오류 해결하기

1. 개요 KVM에서 NVIDIA GPU를 Passthrough 설정하여 VM에 할당할 때 RmInitAdapter failed 오류를 자주 접하게…

%일 전

[Proxmox] pGPU와 vGPU 동시 사용 설정

1. 개요 Proxmox에서 pGPU(Physical GPU)와 vGPU(Virtual GPU)를 동일한 서버에서 동시에 사용하는 방법을 정리합니다. 2. 버전…

%일 전

[Proxmox] vGPU 설정

1. 개요 Proxmox에서 vGPU를 설정하는 방법을 정리합니다. 2. 버전 Proxmox 8.2 3. vGPU란? vGPU(Virtual GPU)는…

%일 전