enp5s0f0
, enp5s0f1
)를 bonding(active-backup) 방식으로 구성하고, 해당 bond 장치를 브리지(br0
) 와 연결하여 KVM 가상머신에서 사용할 수 있도록 설정하는 방법을 설명합니다.mode=active-backup
: 하나만 활성화되어 있고, 나머지는 대기.mode=balance-rr
: 순차적으로 트래픽 분배.# vim /etc/sysconfig/network-scripts/ifcfg-bond0
설정 예시:
DEVICE=bond0
TYPE=Bond
BONDING_MASTER=yes
BONDING_OPTS="mode=active-backup miimon=100"
ONBOOT=yes
BRIDGE=br0
# vim /etc/sysconfig/network-scripts/ifcfg-enp5s0f0
설정 예시:
DEVICE=enp5s0f0
ONBOOT=yes
MASTER=bond0
SLAVE=yes
# vim /etc/sysconfig/network-scripts/ifcfg-enp5s0f1
설정 예시:
DEVICE=enp5s0f1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
# vim /etc/sysconfig/network-scripts/ifcfg-br0
설정 예시:
****DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.204.240
NETMASK=255.255.255.0
GATEWAY=192.168.204.253
# reboot
# ifconfig
출력 예시:
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500
ether 00:25:90:c6:d2:43 txqueuelen 1000 (Ethernet)
RX packets 452501 bytes 39442795 (37.6 MiB)
RX errors 0 dropped 6668 overruns 0 frame 0
TX packets 5012 bytes 513185 (501.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.204.240 netmask 255.255.255.0 broadcast 192.168.204.255
inet6 fe80::225:90ff:fec6:d243 prefixlen 64 scopeid 0x20<link>
ether 00:25:90:c6:d2:43 txqueuelen 1000 (Ethernet)
RX packets 260351 bytes 21459886 (20.4 MiB)
RX errors 0 dropped 9812 overruns 0 frame 0
TX packets 4997 bytes 512771 (500.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp5s0f0: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 00:25:90:c6:d2:43 txqueuelen 1000 (Ethernet)
RX packets 267093 bytes 25727466 (24.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5013 bytes 513635 (501.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7220000-c723ffff
enp5s0f1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 00:25:90:c6:d2:43 txqueuelen 1000 (Ethernet)
RX packets 185412 bytes 13715569 (13.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7200000-c721ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:6e:8f:c4 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
bond0
: master 인터페이스, 정상 작동 중br0
: 가상 브리지 인터페이스, IP 주소 보유enp5s0f0
, enp5s0f1
: SLAVE 상태, bond에 묶여 있음# cat /proc/net/bonding/bond0
출력 예시:
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: enp5s0f0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: enp5s0f1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:25:90:c6:d2:43
Slave queue ID: 0
Slave Interface: enp5s0f0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:25:90:c6:d2:42
Slave queue ID: 0
https://youtu.be/XwG4jBWakzQ 1. 개요 Supermicro IPMIView는 Supermicro에서 제공하는 IPMI (Intelligent Platform Management Interface) 기반의 통합 관리…
1. 개요 KVM에서 NVIDIA GPU를 Passthrough 설정하여 VM에 할당할 때 RmInitAdapter failed 오류를 자주 접하게…
1. 개요 Proxmox에서 pGPU(Physical GPU)와 vGPU(Virtual GPU)를 동일한 서버에서 동시에 사용하는 방법을 정리합니다. 2. 버전…
1. 개요 Proxmox에서 vGPU를 설정하는 방법을 정리합니다. 2. 버전 Proxmox 8.2 3. vGPU란? vGPU(Virtual GPU)는…
1. 개요 Proxmox 환경에서 pGPU(Partitioned GPU)를 설정하는 방법을 정리한 가이드입니다. 2. 버전 Proxmox 8.2 3.…
https://youtu.be/TjPk9KL5hLI 1. 개요 Proxmox에서는 클러스터 내의 가상 머신(VM)을 다른 노드로 마이그레이션(Migrate) 할 수 있는 기능을 제공합니다. 마이그레이션을…