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
1. 개요 본 글은 LVM의 스냅샷(snapshot) 기능으로 복구 지점 생성 → 파일 변경 → 스냅샷 병합(rollback) 과정을 실습합니다. 동일한…
https://youtu.be/ZcxB7akkDKs 1. 개요 두 개의 디스크(/dev/vdb, /dev/vdc)로 LVM을 구성하고, ext4·XFS 파일시스템 생성 → 마운트 → VG/LV 확장 → ext4 축소(오프라인)까지 전체…
https://youtu.be/XYBR1ZFrV9s 1. 개요 parted를 사용해 새 디스크에 GPT 라벨 생성 → 파티션 생성(ext4/XFS) → 포맷/마운트 →…
https://youtu.be/yYV8RQKCFzA 1. 개요 이 문서는 fdisk를 사용해 MBR(DOS) 디스크에 파티션을 생성하고, ext4/XFS 파일시스템을 포맷·마운트, /etc/fstab에 등록했다가, 안전하게 해제·삭제하는 전…
1. 개요 Linux에서 디스크 파티션 스타일은 MBR(Master Boot Record) 와 GPT(GUID Partition Table)에 대해 설명합니다. 2. MBR이란? 디스크…
https://youtu.be/CNd1bJV4wGY 1. 개요 Windows Server를 새로 설치할 때의 설치 과정을 단계별로 정리하였습니다. Windows Server 설치…