Skip to content

Instantly share code, notes, and snippets.

@barn
Created June 28, 2012 01:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barn/3008021 to your computer and use it in GitHub Desktop.
Save barn/3008021 to your computer and use it in GitHub Desktop.
LACP + VLANs on debian
root@schick-1:~# cat /etc/network/interfaces
# 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
# The primary network interface
# allow-hotplug eth0
# iface eth0 inet dhcp
auto bond0
iface bond0 inet static
bond-mode 4
bond-miimon 100
bond_xmit_hash_policy layer2+3
bond_lacp_rate fast
slaves eth0 eth1
auto bond0.42
iface bond0.42 inet dhcp
vlan_raw_device bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment