Re: sysctls and if_bridge

From: Eygene Ryabinkin <rea-fbsd_at_codelabs.ru>
Date: Wed, 24 Sep 2008 19:41:02 +0400
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

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 
    {_.-``-'         {_/            #

Received on Wed Sep 24 2008 - 13:41:06 UTC

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