This article describes how to configure LACP (802.3ad) bonding on the external network interface of a BCM 11 Head Node.
The configuration consists of two parts:
sudo nano /etc/netplan/02-external-bond.yaml
Paste the following configuration:
network:
version: 2
renderer: NetworkManager
ethernets:
ens2f0np0:
dhcp4: no
ens2f1np1:
dhcp4: no
bonds:
bond0:
interfaces:
- ens2f0np0
- ens2f1np1
parameters:
mode: 802.3ad
mii-monitor-interval: 100
addresses:
- <address>
routes:
- to: default
via: <gateway ip>
nameservers:
addresses:
- <dns ip>
Apply the configuration:
sudo chmod 600 /etc/netplan/02-external-bond.yaml
sudo netplan apply
Run the following commands in cmsh:
cmsh
% device use <headnode-hostname> # ← Change to your head node hostname
% interfaces
# Remove existing network/IP from the physical interfaces first
% use ens2f0np0
% clear network
% clear ip
% commit
% add ens2f1np1% use ens2f1np1
% clear network
% clear ip
% commit
# Go back and create the bond
% ..
% add bond bond0
% set interfaces ens2f0np0 ens2f1np1
% set network externalnet
% set ip <ip>
% set mode 4
% set options "miimon=100"
% commit
cmsh
% device use <headnode-hostname>
% interfaces
% list
ip a show bond0
cmsh
% device use <head-node-hostname>
% interfaces
% use ens2f0np0
% clear network
% clear ip
% commit
% use ens2f1np1
% clear network
% clear ip
% commit
% ..
% add bond bond0
% set interfaces ens2f0np0 ens2f1np1
% set network externalnet
% set ip <address>
% set mode 4
% set options "miimon=100"
% commit