From owner-freebsd-questions@FreeBSD.ORG Tue Jul 3 19:10:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 970A716A400 for ; Tue, 3 Jul 2007 19:10:50 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 7ADB413C489 for ; Tue, 3 Jul 2007 19:10:50 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l63JAUpT065322; Tue, 3 Jul 2007 15:10:31 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Tue, 3 Jul 2007 15:10:05 -0400 User-Agent: KMail/1.9.6 References: <20070703183516.GA70961@bewilderbeast.blackhelicopters.org> In-Reply-To: <20070703183516.GA70961@bewilderbeast.blackhelicopters.org> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707031510.05713.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: "Michael W. Lucas" Subject: Re: if_lagg(4) and rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 19:10:50 -0000 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