From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 05:45:12 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C2D21065676 for ; Tue, 22 Apr 2008 05:45:12 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id D9E868FC29 for ; Tue, 22 Apr 2008 05:45:11 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=ox7OOzLdUR2ZtwqySzIfCaHUleet2GAXhG2JKswmgGmbFiZdufvBU3Joc/1fBVmr1Za3sIY46zLAwsakWV22I3PShw81HjyT8t6jv85z44aLqz42ZgEfNPk3ZjsU9rWViw2OzdldA5qdVu4948ocb/qL7N1LvqeAgfXkufU09he7TJ39Yoyo7uf2NvpUtYZFFHH+Co4ZhxQ/r+GenvWjI5DpkPzVldQWT5rqShPdXvjtuK7OSXL3o9kH37KtbH6s; Received: from uucp by munchkin.clue.co.za with local-rmail (Exim 4.67) (envelope-from ) id 1JoBJW-0005xq-Ex; Tue, 22 Apr 2008 05:45:10 +0000 Received: from ianf.clue.co.za ([10.0.0.6] helo=clue.co.za) by urchin.clue.co.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JoBJ8-0000yA-Hr; Tue, 22 Apr 2008 05:44:46 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JoBJ5-000Gar-1K; Tue, 22 Apr 2008 07:44:43 +0200 To: Daniel Eischen From: Ian FREISLICH In-Reply-To: Message from Daniel Eischen of "Mon, 21 Apr 2008 23:55:00 -0400." X-Attribution: BOFH Date: Tue, 22 Apr 2008 07:44:43 +0200 Message-Id: Cc: current@freebsd.org Subject: Re: How to use /etc/rc.conf with ifconfig_lagg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 05:45:12 -0000 Daniel Eischen wrote: > I'm trying to get a lagg interface up via standard /etc/rc.conf > settings, but it just doesn't seem to be working. Here's the > respective settings: > > ifconfig_sis0="up" > ifconfig_sis1="up" > ifconfig_sis2="up" > cloned_interfaces="lagg0" > ifconfig_lagg0="inet 192.168.3.97 netmask 0xffffff80 \ > laggproto failover laggport sis2 laggport sis0 laggport sis1" > > I've also tried: > > ifconfig_lagg0="laggproto failover laggport sis2 laggport sis0 \ > laggport sis1 inet 192.168.3.97 netmask 0xffffff80" > > and without 'inet' as lagg(4) suggests: > > ifconfig_lagg0="laggproto failover laggport sis2 laggport sis0 \ > laggport sis1 192.168.3.97 netmask 0xffffff80" > > but nothing seems to work. The lagg0 interface gets created > and configured with failover and with all the failover ports > correctly added, but the IP address and netmask do not get > set. I have to manually set them after the system boots. > Without manually setting them, I get: I've found this too with other cloned interfaces, vlans for me. I use the following trick to work around the problem of not being able to set the address and other configuration at the same time: ifconfig_vlan1000="vlandev em2 vlan 1000" ifconfig_vlan1000_alias0="inet 10.0.0.1/24" So for your case, I'd do: ifconfig_lagg0="laggproto failover laggport sis2 laggport sis0 \ laggport sis1" ifconfig_lagg0_alias0="inet 192.168.3.97 netmask 0xffffff80" I'm not sure why it doesn't work the way you'd expect to. Ian -- Ian Freislich