From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 15:17:49 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E135416A469 for ; Wed, 8 Aug 2007 15:17:49 +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 B80F413C465 for ; Wed, 8 Aug 2007 15:17:49 +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 l78FHm2r047378; Wed, 8 Aug 2007 11:17:49 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Wed, 8 Aug 2007 11:17:12 -0400 User-Agent: KMail/1.9.7 References: <20070808135858.GA2847@aurora.oekb.co.at> In-Reply-To: <20070808135858.GA2847@aurora.oekb.co.at> 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: <200708081117.12825.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: Ewald Jenisch Subject: Re: lagg(4) - configuration for /etc/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: Wed, 08 Aug 2007 15:17:50 -0000 On Wednesday 08 August 2007 09:58:58 am Ewald Jenisch wrote: > Thanks to the hints posted here about "failover redundancy" I've > successfully set up lagg(4) in order to have a machine with redundant > failover connection to two switches. > > > The only thing that's missing is the correct configuration in > /etc/rc.conf. > > Here's what I've got so far in my rc.conf: > > defaultrouter="192.168.9.1" > if_lagg_load="YES" This belongs in /boot/loader.conf, not /etc/rc.conf. > ifconfig_bge0="UP" > ifconfig_bge1="UP" > ifconfig_lagg0="create" This should be: cloned_interfaces="lagg0" Once you fix those two things you should be in good shape. JN > ifconfig_lagg0="laggproto failover laggport bge0 laggport bge1 192.168.9.5 > netmask 255.255.255.0" > > > The problem is that once the machine boots the "lagg0" interface > doesn't get created/activated; a "ifconfig" done after booting shows > that no lagg interface is there, but the physical interfaces (bge0, > bge1) are UP. > > > Only after I manually enable the lagg-interface it with "ifconfig > lagg0 create" the interface is created but then it automagically gets > the right IP-address and routing also works: > > # ifconfig > bge0: flags=8843 mtu 1500 > options=1b > ether 00:08:02:47:0d:56 > media: Ethernet autoselect (1000baseTX ) > status: active > lagg: laggdev lagg0 > bge1: flags=8843 mtu 1500 > options=1b > ether 00:08:02:47:0d:56 > media: Ethernet autoselect (100baseTX ) > status: active > lagg: laggdev lagg0 > lo0: flags=8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > lagg0: flags=8843 mtu 1500 > options=1b > inet 192.168.9.5 netmask 0xffffff00 broadcast 192.168.9.255 > ether 00:08:02:47:0d:56 > media: Ethernet autoselect > status: active > laggproto failover > laggport: bge1 flags=4 > laggport: bge0 flags=5 > > > I've tried numerous variations of the "ifconfig_lagg0"-lines in > /etc/rc.conf above - with or without create etc. - to no extent. Upon > boot the lagg-interface remains down basically cutting of the box from > the network until I enable the lagg-interface from the console :-(. > > Thanks much in advance for any clue, > -ewald > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"