From owner-freebsd-current@FreeBSD.ORG Thu Sep 25 01:12:05 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D8291065693 for ; Thu, 25 Sep 2008 01:12:05 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.232]) by mx1.freebsd.org (Postfix) with ESMTP id E97EF8FC21 for ; Thu, 25 Sep 2008 01:12:04 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: by rv-out-0506.google.com with SMTP id b25so171152rvf.43 for ; Wed, 24 Sep 2008 18:12:04 -0700 (PDT) Received: by 10.114.122.2 with SMTP id u2mr8870713wac.21.1222305124040; Wed, 24 Sep 2008 18:12:04 -0700 (PDT) Received: by 10.115.90.13 with HTTP; Wed, 24 Sep 2008 18:12:04 -0700 (PDT) Message-ID: <1de79840809241812v1281077ckb0cb5382cf7d6422@mail.gmail.com> Date: Wed, 24 Sep 2008 21:12:04 -0400 From: "Michael Proto" To: "Eygene Ryabinkin" In-Reply-To: <1de79840809241005o17ce674w21df25a0a310f0ec@mail.gmail.com> MIME-Version: 1.0 References: <48C1E43C.1010902@jellydonut.org> <1de79840809240710q5222645ar4549d96a457d7614@mail.gmail.com> <1de79840809240745k4bb9d7bekb3f96812e109d035@mail.gmail.com> <1de79840809241005o17ce674w21df25a0a310f0ec@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Current Subject: Re: sysctls and if_bridge 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: Thu, 25 Sep 2008 01:12:05 -0000 On Wed, Sep 24, 2008 at 1:05 PM, Michael Proto wrote: > On Wed, Sep 24, 2008 at 11:41 AM, Eygene Ryabinkin wrote: > >> >> Seems like you're facing the problem where bridge0 inherits its MAC from >> the 'wan' interface. Try to specify bridge0's MAC explicitely (via >> ifconfig's 'link XX:XX:XX:XX:XX:XX' arguments); you can use some random >> MAC, for example the one that is generated at the system's bootup for >> bridge0 (example from one of my hosts): >> ----- >> $ dmesg | grep bridge0 | grep Ethernet >> bridge0: Ethernet address: 2e:13:01:19:11:66 >> ----- >> May be this will help you to work out your problems. >> >> If so, then you'll probably need sys/net/if_bridge.c revision 1.117, >> >> http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/net/if_bridge.c?rev=1.117;content-type=text%2Fplain >> >> If this won't help, I'll try to think a bit more about this issue ;)) >> >> > Eygene, > > Manually setting the bridge0 MAC to something other than the wan did work. Rebuilt kernel with if_bridge.c rev 1.117 and the bridge0 MAC is now randomly-generated again, and works as well. Thanks for the help! I also now see the net.link.bridge.inherit_mac sysctl as specified in the commit. Just curious, but would this be useful in situations where pfil_member is 1 and pfil_bridge is 0? Thanks again, Proto