From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 6 05:55:45 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B5EA106566C; Sat, 6 Sep 2008 05:55:45 +0000 (UTC) (envelope-from freebsd-bridge-sep08@oldach.net) Received: from rigel.oldach.net (rigel.oldach.net [194.8.96.250]) by mx1.freebsd.org (Postfix) with ESMTP id A85F68FC0A; Sat, 6 Sep 2008 05:55:44 +0000 (UTC) (envelope-from freebsd-bridge-sep08@oldach.net) Received: from sep.oldach.net (hmo.in-dsl.de [217.197.85.210]) by rigel.oldach.net (8.14.2/8.14.2/hmo30jul04) with ESMTP id m865hjgr014678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 6 Sep 2008 07:43:46 +0200 (CEST) (envelope-from freebsd-bridge-sep08@oldach.net) Received: from sep.oldach.net (localhost [127.0.0.1]) by sep.oldach.net (8.14.3/8.14.3/hmo26jun05) with ESMTP id m865hhb9004048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Sep 2008 07:43:43 +0200 (CEST) (envelope-from freebsd-bridge-sep08@oldach.net) Received: (from hmo@localhost) by sep.oldach.net (8.14.3/8.14.3/Submit/hmo26jun05) id m865hgTD004047; Sat, 6 Sep 2008 07:43:42 +0200 (CEST) (envelope-from freebsd-bridge-sep08@oldach.net) Message-Id: <200809060543.m865hgTD004047@sep.oldach.net> In-Reply-To: <200809022130.m82LU1HJ091606@freefall.freebsd.org> from "FreeBSD-gnats-submit@FreeBSD.org" at "2 Sep 2008 21:30:01" To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Date: Sat, 6 Sep 2008 07:43:42 +0200 (CEST) From: freebsd-bridge-sep08@oldach.net (Helge Oldach) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: kern/127052: Still bridge issues - with L2 protocols such as PPPoE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2008 05:55:45 -0000 I have tested Eygenes patch and it works as expected on 6-STABLE. However the behaviour is a little bit strange: The sysctl is of by default. When enabling it, nothing happens. The bridge's MAC still is the random MAC chosen upon boot. Even toggling the bridge interface down/up doesn't change it. The bridge's MAC is inherited only when a member interface is added or deleted. Essentially this sysctl must be set at boot time, e.g. in /etc/sysctl.conf to make it work consistently. Further, it is a global sysctl that applies to *all* bridge interfaces identically. It is not possible to have one bridge with inheritance, and another without. Philip explained that the main rationale for MAC inheritance was to make DHCP consistent over reboots. This can be simply achieved by a trivial ifconfig_bridge0="link 66:fc:df:e2:3f:f5 up" (or similar) in /etc/rc.conf. There is no need to change code at all to achieve the desired effect, and we still have full flexibility, even with multiple bridges. (To simplify mass deployment, one can seed the MAC in the above command from a file created upon initial boot.) I would therefore mandate to back out the bridge inheritance stuff completely. Helge