Re: sysctls and if_bridge

From: Michael Proto <mike_at_jellydonut.org>
Date: Wed, 24 Sep 2008 13:05:04 -0400
On Wed, Sep 24, 2008 at 11:41 AM, Eygene Ryabinkin <rea-fbsd_at_codelabs.ru>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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0
> mtu
> > 1500
> >         options=280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC>
> >         ether 00:0d:b9:12:99:6a
> >         inet 20.30.40.50 netmask 0xffffff00 broadcast 20.30.40.255
> >         media: Ethernet 100baseTX <full-duplex>
> >         status: active
> > bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
> >                 ifmaxaddr 0 port 2 priority 128 path cost 200000
> >         member: wan flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
> >                 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<http://www.freebsd.org/cgi/cvsweb.cgi/%7Echeckout%7E/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
Received on Wed Sep 24 2008 - 15:05:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC