Configure Link Aggregation on FreeBSD

Synopsis

This paper describes how to 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

  1. 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. Either way, the lagg man page is the best reference to do this.

    #  man lagg
  2. 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"

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 2001 - 2010 rjw@