Configure Link Aggregation on FreeBSD

Synopsis

Configure Link Aggregation on FreeBSD using the lagg driver. See the LAGG(4) manual page and Link Aggregation and Failover in the FreeBSD Handbook for more information.

Substitute fxp0 and fxp1 with the primary and secondary interfaces you'll be using.

Description

Load Kernel Module

The first step, if not already completed, is to load the lagg driver into the kernel. This can be done by using the kldload command or compiling it into the kernel. Read the lagg man page for persistent methods.

# kldload lagg

Configure Host Interfaces

Edit /etc/rc.conf.local and add the following lines to ensure the interface is recreated each reboot:

# vi /etc/rc.conf.local
ifconfig_fxp0="up"
ifconfig_fxp1="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.1.1.1 netmask 255.255.255.0"

Configure Switch Interfaces

Configuring trunking on your switch may vary depending on the model so consult the documentation. If it's a Cisco then read the Link Aggregation and Failover in the FreeBSD Handbook for examples.

Copyright 2018