1. 创建绑定网卡
nmcli con add type bond con-name pbond0 ifname pbond0 bond.options "mode=802.3ad, miimon=100,lacp_rate=fast,xmit_hash_policy=layer3+4,num_grat_arp=2,num_unsol_na=2,resend_igmp=1"
2.加网卡
nmcli con add type ethernet con-name pbond0-ens1f0np0 ifname ens1f0np0 controller pbond0
nmcli con add type ethernet con-name pbond0-ens4f0np0 ifname ens4f0np0 controller pbond0
3.设置IP
nmcli con modify pbond0 ipv4.addresses '172.27.16.11/24'
nmcli con modify pbond0 ipv4.gateway '172.27.16.254'
nmcli con modify pbond0 ipv4.method manual
4.启动绑定
nmcli con up pbond0
nmcli con show pbond0
5. 查看绑定情况
cat /proc/net/bounding/pbond0