From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 13:59:02 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 9DD5916A417 for ; Wed, 8 Aug 2007 13:59:02 +0000 (UTC) (envelope-from a@jenisch.at) Received: from srvdmz13.oekb.co.at (srvdmz13.oekb.co.at [143.245.5.103]) by mx1.freebsd.org (Postfix) with ESMTP id F090213C45A for ; Wed, 8 Aug 2007 13:59:01 +0000 (UTC) (envelope-from a@jenisch.at) X-SEF-Processed: 5_0_0_910__2007_08_08_15_58_59 X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1 Received: from msc01-n1 [143.245.2.187] by srvdmz13.oekb.co.at - SurfControl E-mail Filter (5.2.1); Wed, 08 Aug 2007 15:58:59 +0200 Received: from aurora.oekb.co.at ([143.245.9.16]) by MAIL1.oekb.co.at with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Aug 2007 15:58:59 +0200 Received: from aurora.oekb.co.at (localhost.oekb.co.at [127.0.0.1]) by aurora.oekb.co.at (8.13.8/8.13.8) with ESMTP id l78Dwx6r003244 for ; Wed, 8 Aug 2007 15:58:59 +0200 (CEST) (envelope-from a@jenisch.at) Received: (from ej@localhost) by aurora.oekb.co.at (8.13.8/8.13.8/Submit) id l78Dwwvb003243 for freebsd-questions@freebsd.org; Wed, 8 Aug 2007 15:58:58 +0200 (CEST) (envelope-from a@jenisch.at) X-Authentication-Warning: aurora.oekb.co.at: ej set sender to a@jenisch.at using -f Date: Wed, 8 Aug 2007 15:58:58 +0200 From: Ewald Jenisch To: freebsd-questions@freebsd.org Message-ID: <20070808135858.GA2847@aurora.oekb.co.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-OriginalArrivalTime: 08 Aug 2007 13:58:59.0888 (UTC) FILETIME=[45109300:01C7D9C4] Subject: 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 13:59:02 -0000 Hi, 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" ifconfig_bge0="UP" ifconfig_bge1="UP" ifconfig_lagg0="create" 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