Skip to content

Bond Network Interfaces (LAG)

Edit /etc/network/interfaces

You will need to know which physical interfaces you need to use, for me this is eno3 and eno4, also the IP address you intend to use, which should already be configured for vmbr0. Edit /etc/network/interfaces so it is like the following, replacing for your configuration where appropriate.

/etc/network/interfaces

auto lo
iface lo inet loopback

# these interfaces are the 10g interfaces.
iface eno1 inet manual
iface eno2 inet manual

# these are the 1g interfaces.
iface eno3 inet manual
iface eno4 inet manual

iface bond0 inet manual
        bond-slaves eno3 eno4
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3


auto vmbr0
iface vmbr0 inet static
        address 192.168.1.4/24
        gateway 192.168.1.1
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

Then, reload the configuration by either rebooting or on the console using > ifdown -a && ifup -a

References