nmcli con add type bond con-name bond0 ifname bond0
nmcli con modify bond0 bond.options "mode=802.3ad,xmit_hash_policy=layer2+3,miimon=100,lacp_rate=1"
nmcli con add type ethernet slave-type bond con-name bond0-eno1 ifname "eno1" master bond0
nmcli con add type ethernet slave-type bond con-name bond0-eno2 ifname "eno2" master bond0
nmcli con mod bond0 ipv4.method disabled
nmcli con mod bond0 ipv6.method ignore
nmcli con add type vlan con-name bond0.2222 ifname bond0.2222 dev bond0 id 2222
nmcli con mod bond0.2222 ipv4.addresses '10.0.0.5/24'
nmcli con mod bond0.2222 ipv4.gateway '10.0.0.1'
nmcli con mod bond0.2222 ipv4.dns '8.8.8.8,8.8.4.4'
nmcli con mod bond0.2222 ipv4.method manual
nmcli con mod bond0.2222 +ipv4.routes "10.10.0.0/24 10.10.0.1"
ОтветитьУдалитьnmcli device disconnect bond0.2222 && sleep 5 && nmcli connection up bond0.2222