# {{ ansible_managed }} auto lo iface lo inet loopback # Slave interfaces {% for iface in bond_interfaces %} iface {{ iface }} inet manual {% endfor %} # Master interface auto bond0 iface bond0 inet static address 0.0.0.0 accept_ra 0 bond-mode 802.3ad bond-slaves {{ bond_interfaces | join(' ') }} bond-lacp-rate 1 bond-xmit-hash-policy layer2+3 bond-miimon 100 mtu 9000 post-up tc qdisc add dev bond0 root sfq perturb 10 auto bond0.20 iface bond0.20 inet static address 0.0.0.0 # Bridge for VM-s on VLAN20 auto vmbr0 iface vmbr0 inet static address 0.0.0.0 accept_ra 0 mtu 1500 bridge_ports bond0.20 bridge-stp off bridge-fd 0 # Interface for NFS client auto bond0.101 iface bond0.101 inet6 static address {{ nfs_address }} mtu 8996 # Proxmox management interface on VLAN21 auto vmbr1 iface vmbr1 inet static address {{ primary_ipv4 }} gateway {{ primary_ipv4_gateway }} iface vmbr1 inet6 static address {{ primary_ipv6 }} gateway {{ primary_ipv6_gateway }} mtu 8996 bridge_ports bond0.21 bridge-stp off bridge-fd 0 source /etc/network/interfaces.d/*