# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Interface bond0
auto bond0
iface bond0 inet manual
	bond-mode 802.3ad
	bond-miimon 100
	bond-lacp-rate 1
	bond-slaves enp0s4 enp0s5
	bond_xmit_hash_policy layer3+4

# Interface vlan10
auto vlan10
iface vlan10 inet static
	vlan-raw-device bond0
	pre-up ip link set up dev enp0s4
	pre-up ip link set up dev enp0s5
	address 192.168.101.131
	network 192.168.101.0
	netmask 255.255.255.0
	broadcast 192.168.101.255
	gateway 192.168.101.1


# Set this one last, so that cloud-init or user can
# override defaults.
source /etc/network/interfaces.d/*

