Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2007 15:10:05 -0400
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        "Michael W. Lucas" <mwlucas@blackhelicopters.org>
Subject:   Re: if_lagg(4) and rc.conf
Message-ID:  <200707031510.05713.lists@jnielsen.net>
In-Reply-To: <20070703183516.GA70961@bewilderbeast.blackhelicopters.org>
References:  <20070703183516.GA70961@bewilderbeast.blackhelicopters.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tuesday 03 July 2007 02:35:16 pm Michael W. Lucas wrote:
> I'm trying to configure a lagg(4) interface out of rc.conf.  FreeBSD
> doesn't want to initialize the interface at boot.  I'm obviously
> missing some little thing.  I'm successfully loading if_lagg into the
> kernel, so that's not the problem.
>
> I can configure the interface at the command line if I do a "ifconfig
> lagg0 create" and then enter the configuration, but there doesn't seem
> to be a rc.conf flag to tell the system to create an interface?
>
> Here's my rc.conf for these interfaces:
>
> ifconfig_em3="up"
> ifconfig_em7="up"
> ifconfig_lagg0="laggproto lacp laggport em3 laggport em7 10.184.1.19
> netmask 0xffff0000"

I haven't played with if_lagg yet, but you should be able to use the 
cloned_interfaces knob in /etc/rc.conf to create the interface. e.g.:

cloned_interfaces="lagg0"
ifconfig_em3="up"
ifconfig_em7="up"
ifconfig_lagg0="laggproto lacp laggport em3 laggport em7 10.184.1.19 \
	netmask 0xffff0000"

if_lagg(4) mentions this briefly (at the end before the examples), and 
if_bridge(4) has a pretty good example (you'd substitute lagg for bridge, of 
course).

JN



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200707031510.05713.lists>