auto ens2f0
iface ens2f0 inet manual
post-up /sbin/ip link set ens2f0 txqueuelen 10000
auto ens2f1
iface ens2f1 inet manual
post-up /sbin/ip link set ens2f1 txqueuelen 10000
auto bond0
iface bond0 inet manual
bond-slaves ens2f0 ens2f1
bond-mode 802.3ad
bond-xmit_hash_policy layer3+4
bond-miimon 100
bond-downdelay 100
bond-updelay 100
up ifconfig bond0
0.0.0.0 mtu 1504 up
down ifconfig bond0 down
auto vlan10
iface vlan10 inet manual
pre-up vconfig add bond0 10 || true
up ifconfig vlan10
192.168.0.1/24 up
post-down vconfig rem vlan10 || true
auto vlan11
iface vlan11 inet manual
pre-up vconfig add bond0 11 || true
up ifconfig vlan11
192.168.1.1/24 up
post-down vconfig rem vlan11 || true