Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2008 21:12:04 -0400
From:      "Michael Proto" <mike@jellydonut.org>
To:        "Eygene Ryabinkin" <rea-fbsd@codelabs.ru>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: sysctls and if_bridge
Message-ID:  <1de79840809241812v1281077ckb0cb5382cf7d6422@mail.gmail.com>
In-Reply-To: <1de79840809241005o17ce674w21df25a0a310f0ec@mail.gmail.com>
References:  <48C1E43C.1010902@jellydonut.org> <1de79840809240710q5222645ar4549d96a457d7614@mail.gmail.com> <wFMM0X05KwEp6HzmyOu91favmi0@8aZIZZZvzzzGx/hHi7dR6YPK4zY> <1de79840809240745k4bb9d7bekb3f96812e109d035@mail.gmail.com> <LyPyDw09yr5e1a0tT3kyR/WQSgU@S2P6rg883vXakEHU62nnBivR4l8> <1de79840809241005o17ce674w21df25a0a310f0ec@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 24, 2008 at 1:05 PM, Michael Proto <mike@jellydonut.org> wrote:

> On Wed, Sep 24, 2008 at 11:41 AM, Eygene Ryabinkin <rea-fbsd@codelabs.ru>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<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,
>
>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1de79840809241812v1281077ckb0cb5382cf7d6422>