bond0(balance-rr) bond4(802.3ad)
nmcli connection add type bond ifname bond0 mode 802.3ad
nmcli connection add type bond-slave ifname ens33 master bond0
nmcli connection add type bond-slave ifname ens37 master bond0
nmcli connection modify bond-bond1 ipv4.method manual ipv4.addresses 10.10.10.222/24 ipv4.gateway 10.10.10.1 ipv4.dns 114.114.114.114,8.8.8.8
nmcli connection up bond-slave-ens33
nmcli connection up bond-slave-ens37
nmcli connection up bond-bond0
bond1
nmcli connection add type bond ifname bond1 mode active-backup
nmcli connection add type bond-slave ifname ens33 master bond1
nmcli connection add type bond-slave ifname ens34 master bond1
nmcli connection modify bond-bond1 ipv4.method manual ipv4.addresses 10.10.10.222/24 ipv4.gateway 10.10.10.1 ipv4.dns 114.114.114.114,8.8.8.8
nmcli connection up bond-slave-ens33
nmcli connection up bond-slave-ens34
nmcli connection up bond-bond1
nmcli修改网卡名
nmcli con mod "Wired connection 1" connection.id ens36
配置网卡开机自动启动
nmcli con mod ens36 connection.autoconnect yes