Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save craigminihan/e953ae2d973905baee8e92440dc0a5d1 to your computer and use it in GitHub Desktop.
Save craigminihan/e953ae2d973905baee8e92440dc0a5d1 to your computer and use it in GitHub Desktop.
Example interfaces file for balance-alb bonding
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s31f6
#iface enp0s31f6 inet dhcp
iface enp0s31f6 inet manual
bond-master bond0
auto enp4s0
iface enp4s0 inet manual
bond-master bond0
auto enp5s0
iface enp5s0 inet manual
bond-master bond0
auto bond0
iface bond0 inet dhcp
bond-mode balance-alb
bond-miimon 50
bond-slaves enp4s0 enp5s0 enp0s31f6
@craigminihan
Copy link
Author

craigminihan commented May 2, 2018

A configuration for bonding three ethernet cards on Ubuntu 16.04

Some refs:
https://help.ubuntu.com/community/UbuntuBonding
https://www.kernel.org/doc/Documentation/networking/bonding.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment