千家信息网

链路聚合

发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,总共使用三个shell第一个shellnm-connection-editornmcli connection add con-name bond0 ifname bond0 type bond mo
千家信息网最后更新 2025年02月02日链路聚合

总共使用三个shell

第一个shell

nm-connection-editor

nmcli connection add con-name bond0 ifname bond0 type bond mode active-backup ip 4 172.25.254.101/24

ifconfig

ping 172.25.254.101

第二个shell

cat /proc/net/bonding/bond0


第三个shell

nmcli connection add con-name eth0 ifname eth0 type bond-slave master bond0

nmcli connection add con-name eth2 ifname eth2 type bond-slave master bond0

输入:ifconfig eth0 down

ifconfig eth0 up

ifconfig eth2 down

ifconfig eth2 up

进行调节

0