Skip to content

Instantly share code, notes, and snippets.

@kr105
Created October 20, 2019 05:31
Show Gist options
  • Save kr105/a6014f746921c91795d628df301727a2 to your computer and use it in GitHub Desktop.
Save kr105/a6014f746921c91795d628df301727a2 to your computer and use it in GitHub Desktop.
Debian + LACP + VLAN
auto lo
iface lo inet loopback
# It is important to activate the bond first with no slaves
# and then bring up the physical interfaces and assign them to the bond
auto bond0
iface bond0 inet manual
bond-mode 4
bond-miimon 100
bond-lacp-rate 1
bond-slaves none
auto enp2s0f0
iface enp2s0f0 inet manual
bond-master bond0
auto enp4s0f0
iface enp4s0f0 inet manual
bond-master bond0
# Interface is configured with a 802.11q VLAN tag over the bond
auto bond0.1110
iface bond0.1110 inet static
address 192.168.0.242/24
gateway 192.168.0.1
vlan_raw_device bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment