From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 17:05: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 A91411065696 for ; Wed, 24 Sep 2008 17:05:05 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by mx1.freebsd.org (Postfix) with ESMTP id 83F6E8FC1D for ; Wed, 24 Sep 2008 17:05:05 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: by wf-out-1314.google.com with SMTP id 24so4718wfg.7 for ; Wed, 24 Sep 2008 10:05:04 -0700 (PDT) Received: by 10.114.53.1 with SMTP id b1mr8385967waa.165.1222275904598; Wed, 24 Sep 2008 10:05:04 -0700 (PDT) Received: by 10.115.90.13 with HTTP; Wed, 24 Sep 2008 10:05:04 -0700 (PDT) Message-ID: <1de79840809241005o17ce674w21df25a0a310f0ec@mail.gmail.com> Date: Wed, 24 Sep 2008 13:05:04 -0400 From: "Michael Proto" To: "Eygene Ryabinkin" In-Reply-To: MIME-Version: 1.0 References: <48C1E43C.1010902@jellydonut.org> <1de79840809240710q5222645ar4549d96a457d7614@mail.gmail.com> <1de79840809240745k4bb9d7bekb3f96812e109d035@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: Wed, 24 Sep 2008 17:05:05 -0000 On Wed, Sep 24, 2008 at 11:41 AM, Eygene Ryabinkin wrote: > Michael, > > Wed, Sep 24, 2008 at 10:45:23AM -0400, Michael Proto wrote: > > Sure! Here you go, and thanks! Bear in mind I'm using interface naming in > > /etc/rc.conf. lan, dmz, and wan are all vr interfaces, and wifi is a vap > > interface "cloned" from ath0 > > > > > > wan: flags=8943 metric 0 > mtu > > 1500 > > options=280b > > ether 00:0d:b9:12:99:6a > > inet 20.30.40.50 netmask 0xffffff00 broadcast 20.30.40.255 > > media: Ethernet 100baseTX > > status: active > > bridge0: flags=8843 metric 0 mtu > > 1500 > > ether 00:0d:b9:12:99:6a > > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > > member: dmz flags=143 > > ifmaxaddr 0 port 2 priority 128 path cost 200000 > > member: wan flags=143 > > ifmaxaddr 0 port 3 priority 128 path cost 55 > > 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 > _ ___ _.--. # > \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard > / ' ` , __.--' # to read the on-line manual > )/' _/ \ `-_, / # while single-stepping the kernel. > `-'" `"\_ ,_.-;_.-\_ ', fsc/as # > _.-'_./ {_.' ; / # -- FreeBSD Developers handbook > {_.-``-' {_/ # > Eygene, Thanks very much for this information! I didn't even notice that the bridge and wan interfaces had the same MAC. I'm at work at the moment, and the box is at home, but I'll try manually setting the MAC to a value not used by other interfaces later tonight and see what happens. Thanks again! -Proto