# 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/S30V0Ua5Aqg 1. 개요 공유기가 자동으로 나눠 준 주소를 쓰던 NAS에 고정 IP를 지정하는 과정입니다. 주소가…
https://youtu.be/IlN8nsrFC_Y 1. 개요 디스크만 꽂아 둔 새 Synology NAS에 운영체제인 DSM을 설치하고, 관리자 계정을 만들어…
https://youtu.be/EOAT80xj74M 1. 개요 공유 폴더의 내용을 다른 공유 폴더로 주기적으로 복사하도록 예약하는 과정입니다. 작업을 만들고…
https://youtu.be/T8OBQ1V61J0 1. 개요 앞서 만든 공유 폴더를 SMB로 내보내 윈도우에서 네트워크 드라이브로 붙여 쓰는 과정입니다.…
https://youtu.be/3TWRTRd-Imo 1. 개요 앞서 만든 공유 폴더를 NFS로 내보내 다른 리눅스 장비에서 마운트해 쓰는 과정입니다.…
https://youtu.be/xyQ36ZKFsyo 1. 개요 디스크 4개를 RAID 5로 묶어 하나의 큰 볼륨으로 만들고 공유 폴더까지 만드는…