| 모드 | 설명 |
|---|---|
| active-backup | 하나는 Active로 사용, 나머지는 Standby로 대기 |
| balance-rr | 라운드로빈 방식으로 트래픽 분산 |
| 802.3ad (LACP) | 스위치와 협업하여 Link Aggregation 구성 |
# nmcli connection show출력 예시:
NAME UUID TYPE DEVICE
Wired connection 1 ce15884d-c679-4912-a235-bc1506b01684 ethernet eth0
Wired connection 2 cc5b7165-bb84-42db-94f5-ac38eb6cad5c ethernet eth1
lo 41db8522-cd1b-4de3-9255-600fce58750c loopback lo# nmcli connection delete "Wired connection 1"
# nmcli connection delete "Wired connection 2"# nmcli device출력 예시:
DEVICE TYPE STATE CONNECTION
lo loopback connected (externally) lo
eth0 ethernet disconnected --
eth1 ethernet disconnected --# nmcli connection add type bond ifname bond0 mode active-backup# nmcli connection add type ethernet slave-type bond con-name slave-eth0 ifname eth0 master bond0
# nmcli connection add type ethernet slave-type bond con-name slave-eth1 ifname eth1 master bond0# nmcli connection modify bond-bond0 ipv4.addresses 192.168.204.245/24
# nmcli connection modify bond-bond0 ipv4.gateway 192.168.204.254
# nmcli connection modify bond-bond0 ipv4.method manual# nmcli connection show출력 예시:
NAME UUID TYPE DEVICE
slave-eth0 addb7811-7d61-4334-b896-0b45d1eb6c4f ethernet eth0
slave-eth1 8ca32426-2b05-434e-97e9-d31f2cf3a5ed ethernet eth1
bond-bond0 4e875f8a-1085-4105-afbc-12a703c29e4f bond bond0
lo 41db8522-cd1b-4de3-9255-600fce58750c loopback lo# nmcli connection up bond-bond0# ip address show bond0출력 예시:
7: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:25:90:e0:b6:0e brd ff:ff:ff:ff:ff:ff
inet 192.168.204.245/24 brd 192.168.204.255 scope global noprefixroute bond0
valid_lft forever preferred_lft forever
inet6 fe80::98d2:62d2:944e:7e43/64 scope link noprefixroute
valid_lft forever preferred_lft forever# ip route show출력 예시:
default via 192.168.204.254 dev bond0 proto static metric 300
192.168.204.0/24 dev bond0 proto kernel scope link src 192.168.204.245 metric 30# cat /proc/net/bonding/bond0출력 예시:
Ethernet Channel Bonding Driver: v5.14.0-503.14.1.el9_5.x86_64
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:25:90:e0:b6:0e
Slave queue ID: 0
Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:25:90:e0:b6:0f
Slave queue ID: 0 # ip link set eth1 down# cat /proc/net/bonding/bond0# ip link set eth1 up출력 예시:
Ethernet Channel Bonding Driver: v5.14.0-503.14.1.el9_5.x86_64
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:25:90:e0:b6:0e
Slave queue ID: 0
Slave Interface: eth1
MII Status: down
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 00:25:90:e0:b6:0f
Slave queue ID: 0 # cat /proc/net/bonding/bond0출력 예시:
Ethernet Channel Bonding Driver: v5.14.0-503.14.1.el9_5.x86_64
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:25:90:e0:b6:0e
Slave queue ID: 0
Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 00:25:90:e0:b6:0f
Slave queue ID: 0 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. 개요 리눅스 서버를 운영할 때 사용자 계정 생성, 비밀번호 설정, 권한 부여, 계정…
https://youtu.be/Gvp2XwBfoKw 1. 개요 리눅스 서버에서는 시스템 시간(OS 시간) 과 하드웨어 시간(RTC, Real-Time Clock) 을 동기화하는 것이 매우 중요합니다. 클러스터…
https://youtu.be/pt9qhawl8LY 1. 개요 리눅스 서버에서는 시스템 시간(OS 시간) 과 하드웨어 시간(RTC, Real-Time Clock) 을 모두 관리할 수 있습니다. 운영체제의…
https://youtu.be/iPdHGXh7DUg 1. 개요 서버 운영 시 시스템 시간이 올바르게 설정되어 있지 않으면 로그 분석, 모니터링,…