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 0bond0: 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: 0https://youtu.be/hlBddMVRL9Q 1. 개요 OpenMediaVault(OMV)는 Debian 기반의 오픈소스 NAS(Network Attached Storage) 운영체제로, 웹 브라우저를 통해 스토리지,…
https://youtu.be/iCUa8Ua8fIg 1. 개요 Raspberry Pi OS Lite를 Raspberry Pi Imager를 이용하여 설치하는 방법을 설명합니다. 2.…
안녕하세요.이번에 CKA(Certified Kubernetes Administrator) 시험에서 90점으로 합격했습니다. (합격 기준 66점) 합격 자체도 기뻤지만, 이번 시험을 준비하면서…
https://youtu.be/n8-wlkZiqio 1. 개요 NFS(Network File System)를 설치하고, rw/ro 및 root_squash 옵션에 따른 접근 제어와 성능을 테스트하는 방법을 정리한 가이드입니다.…
https://youtu.be/4MVxzmepY3s 1. 개요 리눅스에서 정기적으로 실행되는 작업(백업, 로그 정리, 모니터링 등)은 cron 서비스를 통해 자동화할 수 있습니다.…
https://youtu.be/vPfxWFBE1yc 1. 개요 리눅스 서버를 운영할 때 사용자 계정 생성, 비밀번호 설정, 권한 부여, 계정…