From owner-freebsd-net@FreeBSD.ORG Mon Mar 6 00:53:38 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2765C16A420; Mon, 6 Mar 2006 00:53:38 +0000 (GMT) (envelope-from freebsdnik@j2d.lam.net.au) Received: from ichimail.justnet.info (ichiban.broadband.sublimeip.com [203.217.17.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F13443D46; Mon, 6 Mar 2006 00:53:37 +0000 (GMT) (envelope-from freebsdnik@j2d.lam.net.au) Received: from localhost (unknown [127.0.0.1]) by ichiban-mailfilter.justnet.info (Postfix) with ESMTP id 0D8C068AD5; Mon, 6 Mar 2006 11:53:35 +1100 (EST) Received: from ichimail.justnet.info ([127.0.0.1]) by localhost (ichiban.justnet.info [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 37592-10; Mon, 6 Mar 2006 11:53:34 +1100 (EST) Received: from [192.168.0.231] (dhcp1 [192.168.0.231]) by ichimail.justnet.info (Postfix) with ESMTP id C0DCE68A7B; Mon, 6 Mar 2006 11:53:32 +1100 (EST) Message-ID: <440B880D.1080402@j2d.lam.net.au> Date: Mon, 06 Mar 2006 11:53:33 +1100 From: Nik Lam User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Andrew Thompson References: <440683E2.8000009@j2d.lam.net.au> <440B4759.6010106@j2d.lam.net.au> <20060305204051.GA44857@heff.fud.org.nz> <440B6644.3050800@j2d.lam.net.au> <20060306002341.GB44857@heff.fud.org.nz> In-Reply-To: <20060306002341.GB44857@heff.fud.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ichiban.justnet.info Cc: freebsd-net@freebsd.org Subject: Re: configuring if_bridge with stp at boot in /etc/rc.conf X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 00:53:38 -0000 Andrew Thompson wrote: > On Mon, Mar 06, 2006 at 09:29:24AM +1100, Nik Lam wrote: > >> Andrew Thompson wrote: >> >>> On Mon, Mar 06, 2006 at 07:17:29AM +1100, Nik Lam wrote: >>> >>>> To re-iterate, when I try to activate the bridge with STP parameters >>>> in rc.conf, one of the bridge interfaces goes into forwarding mode, >>>> but the other interfaces remains in disabled mode. >>>> >>> Can you post the full output from ifconfig and tell us what version of >>> the OS you are running. >>> >>> >> Here's what I see about a minute after booting up. If I run it earlier >> I get to see the em1 member of bridge0 go through the listening and >> learning modes, but em2 remains disabled throughout. >> >> > > It may be possible that the link-up notification is not happening for > em2 or we are somehow missing the first one. > > Can you try this patch and see if stp on em2 kicks into life. Can you > also test unplugging/plugging the network cable for em2 and see if you > get link change messages in your dmesg. > > > Andrew > Thanks Andrew. Firstly, I tried unplugging/plugging em2 and yes - that causes link state changes to be logged as well as getting STP working correctly - the em2 member goes into listening and then learning and then forwarding. I'll apply your patch now. I'm assuming there is no shortcut to rebuilding the kernel in which case it will probably be quite late before I get back with results. Nik