LACP Ubuntu 18.04/20.04

Nov. 10, 2020

LACP for FUJI RXXX server under ubuntu 18.04 / 20.04

LACP Image

I was struggling with the new netplan configuration options under ubuntu 18.04 LTS or ubuntu 20.04.1 LTS. I hope this configuration will help you guys. Works for me like a charm.

To set interfaces up and down use

ip a
ip link set INTERFACE_NAME up
ip link set INTERFACE_NAME down
vim /etc/netplan/01-netcfg.yaml
network:
  ethernets:
    eno1:
      dhcp4: true
    switchports:
      match: {name: LACP_INTERFACE_NAME*}
  version: 2
 
  bonds:
    bond0:
      dhcp4: false
      addresses:
        - 192.168.1.3/24
      interfaces:
        - switchports
      parameters:
        mode: 802.3ad
        mii-monitor-interval: 5
        lacp-rate: slow
        min-links: 1