在這裡編輯新頁面「首頁/2025-03-07」

Step 1: Backup network config

mkdir /root/backup
cp -ar /etc /root/backup/

Step 2: Create bonding interface

zs-bond-lacp -c bond0
zs-nic-to-bond -a bond0 enp61s0f0
zs-nic-to-bond -a bond0 enp61s0f1
zs-nic-to-bond -a bond0 enp61s0f2
zs-nic-to-bond -a bond0 enp61s0f3
zs-show-network

cat /proc/net/bonding/bond0
ethtool bond0

Step 3: Create bridge interface br_bond0

brctl create br_bond0
brctl addif br_bond0 bond0

brctl show br_bond0
brctl showstp

Step 4: Setting ip address for br_bond0

zs-network-setting -i br_bond0 192.168.100.249 255.255.255.0 192.168.100.254
zs-network-show
ip -br address show

ping 192.168.100.254
ping 8.8.8.8

Step 5: Unplug Network Cable Test

Unplug the cables from enp61s0f0 to enp61s0f3 one by one.

The network should not be disconnected, but ping packet loss may occur.

In PRODUCTION Host

Run the following command on the production server to monitor the bonding network status.

watch cat /proc/net/bonding/bond0

On other computer in the same network segment, continue to ping the production server ip.

ping 192.168.100.249

首頁/2025-03-07 (last edited 2025-03-06 18:06:41 by merlyn)