# nmcli connection modify bond-bond0 ipv4.method auto # nmcli connection modify bond-bond0 ipv4.gateway "" # nmcli connection modify bond-bond0 ipv4.addresses ""
# nmcli connection add type bridge ifname br0 con-name br0 connection.autoconnect yes # nmcli connection modify br0 ipv4.addresses 192.168.204.245/24 # nmcli connection modify br0 ipv4.gateway 192.168.204.254 # nmcli connection modify br0 ipv4.method manual
# nmcli connection modify bond-bond0 connection.master br0 connection.slave-type bridge
# reboot
# ip address show br0
출력 예시:
4: br0: <BROADCAST,MULTICAST,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 br0
valid_lft forever preferred_lft forever
inet6 fe80::4706:a3d3:c480:6e4b/64 scope link noprefixroute
valid_lft forever preferred_lft forever # bridge link
출력 예시:
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 master br0 state forwarding priority 32 cost 100
# nmcli connection show
출력 예시:
NAME UUID TYPE DEVICE br0 5e152a33-5dbf-4e01-94bf-40a460a98401 bridge br0 bond-bond0 6fa17a23-253f-4fa3-9d65-731e9e6ed934 bond bond0 slave-eth0 93a6c66e-39eb-4a55-a15c-0d7f90cf8895 ethernet eth0 slave-eth1 10c015af-6fe5-4e1a-aebc-cf6f66866634 ethernet eth1 lo 3b07d962-ae91-46db-9e91-026d752bdbc6 loopback lo
# 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: 0 Permanent HW addr: 00:25:90:e0:b6:0f Slave queue ID: 0
# ip link set eth0 down
# 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: down Speed: 1000 Mbps Duplex: full Link Failure Count: 1 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 eth0 up
# 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: 1 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
# vi /etc/sysctl.d/bridge-filter.conf
설정 예시:
net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0
br_netfilter 모듈이 로드될 때 위 설정을 자동으로 적용하도록 udev 규칙을 설정합니다.# vi /etc/udev/rules.d/99-bridge-filter.rules
설정 예시:
ACTION=="add", SUBSYSTEM=="module", KERNEL=="br_netfilter", RUN+="/sbin/sysctl -p /etc/sysctl.d/bridge-filter.conf"
br_netfilter 모듈이 자동으로 로드되도록 설정합니다.# echo "br_netfilter" > /etc/modules-load.d/br_netfilter.conf
# lsmod | grep br_netfilter
출력 예시:
# sysctl net.bridge.bridge-nf-call-iptables # sysctl net.bridge.bridge-nf-call-ip6tables # sysctl net.bridge.bridge-nf-call-arptables
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. 개요 서버 운영 시 시스템 시간이 올바르게 설정되어 있지 않으면 로그 분석, 모니터링,…