# 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/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 설치…
https://youtu.be/48ebJfKsCuw 1. 개요 KVM 가상화 환경에서 Isolated 네트워크를 생성하고 VM에 할당하는 방법을 설명합니다. Isolated 네트워크는…
https://youtu.be/5B-0lWtc6N4 1. 개요 KVM 환경에서 NAT 네트워크를 생성하고 VM에 할당하는 방법을 설명합니다. CLI(virsh)와 GUI(virt-manager) 모두를…
https://youtu.be/2UUUOtFfPUk 1. 개요 virt-install 명령어를 이용해 KVM/QEMU 환경에서 Windows 11 24H2 버전을 설치하는 방법을 소개합니다. GUI 없이 CLI…