NetworkManager创建bond
创建步骤:
1、创建bond 命名为 trunk1 mode=2 miimon=100
nmcli connection add type bond mode balance-xor miimon 100 ifname trunk1 con-name trunk1
2、将物理网卡加入到trunk1中。
nmcli connection add type bond-slave ifname eth1 master trunk1
nmcli connection add type bond-slave ifname eth2 master trunk1
3、将bond-slave-eth1 bond-slave-eth2 up 起来。
nmcli connection up bond-slave-eth1
nmcli connection up bond-slave-eth2
4、此时trunk1的状态是down的。此时需要将trunk1 up起来。
nmcli connection up trunk1