Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] Disable mac address learning
@ 2010-11-27 21:46 Benjamin Vanheuverzwijn
  2010-11-27 22:16 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Vanheuverzwijn @ 2010-11-27 21:46 UTC (permalink / raw)
  To: bridge

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

Hi,

Is there a way to disable the mac address learning in linux using "brctl" or
custom code so any packet sent to the bridge will be flooded in each
interfaces.

I would like to do something similar as OpenBSD:
$ brconfig <bridge> -learn <iface>
$ man brconfig
...
     -learn interface
             Mark interface so that the source address of packets received
             from interface are not entered into the address cache.
...

I tried to search on google and on the mailing-list without success.

Thanks in advance for your replies,

-- 
Benjamin Vanheuverzwijn

Google Talk/Jabber - bvanheu@gmail.com
http://vanheu.ca

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bridge] Disable mac address learning
  2010-11-27 21:46 [Bridge] Disable mac address learning Benjamin Vanheuverzwijn
@ 2010-11-27 22:16 ` Stephen Hemminger
  2010-11-27 22:21   ` Benjamin Vanheuverzwijn
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2010-11-27 22:16 UTC (permalink / raw)
  To: Benjamin Vanheuverzwijn; +Cc: bridge

On Sat, 27 Nov 2010 16:46:34 -0500
Benjamin Vanheuverzwijn <bvanheu@gmail.com> wrote:

> Hi,
> 
> Is there a way to disable the mac address learning in linux using "brctl" or
> custom code so any packet sent to the bridge will be flooded in each
> interfaces.
> 
> I would like to do something similar as OpenBSD:
> $ brconfig <bridge> -learn <iface>
> $ man brconfig
> ...
>      -learn interface
>              Mark interface so that the source address of packets received
>              from interface are not entered into the address cache.
> ...
> 
> I tried to search on google and on the mailing-list without success.

Just set ageing time to zero no need for special config option.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bridge] Disable mac address learning
  2010-11-27 22:16 ` Stephen Hemminger
@ 2010-11-27 22:21   ` Benjamin Vanheuverzwijn
  2010-11-28 13:27     ` matan monitz
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Vanheuverzwijn @ 2010-11-27 22:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

[-- Attachment #1: Type: text/plain, Size: 1685 bytes --]

Hi,

Yes that's wat i thought but reading
http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#Showing_devices_in_a_bridge
tells
me that if i set aging time to 0, it will makes all entry permanent.

The aging time is the number of seconds a MAC address will be

kept in the forwarding database after having received a packet

from this MAC address.

The entries in the forwarding database are periodically timed out

to ensure they won't stay around forever.

Normally there should be no need to modify this parameter,

but it can be changed with (time is in seconds).


> # brctl setageing bridgename time


> Setting ageing time to zero makes all entries permanent.


My bad i did not take time to test it.

Thanks for your answer i will try this!

On Sat, Nov 27, 2010 at 5:16 PM, Stephen Hemminger <
shemminger@linux-foundation.org> wrote:

> On Sat, 27 Nov 2010 16:46:34 -0500
> Benjamin Vanheuverzwijn <bvanheu@gmail.com> wrote:
>
> > Hi,
> >
> > Is there a way to disable the mac address learning in linux using "brctl"
> or
> > custom code so any packet sent to the bridge will be flooded in each
> > interfaces.
> >
> > I would like to do something similar as OpenBSD:
> > $ brconfig <bridge> -learn <iface>
> > $ man brconfig
> > ...
> >      -learn interface
> >              Mark interface so that the source address of packets
> received
> >              from interface are not entered into the address cache.
> > ...
> >
> > I tried to search on google and on the mailing-list without success.
>
> Just set ageing time to zero no need for special config option.
>



-- 
Benjamin Vanheuverzwijn

Google Talk/Jabber - bvanheu@gmail.com
http://vanheu.ca

[-- Attachment #2: Type: text/html, Size: 5021 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bridge] Disable mac address learning
  2010-11-27 22:21   ` Benjamin Vanheuverzwijn
@ 2010-11-28 13:27     ` matan monitz
  0 siblings, 0 replies; 4+ messages in thread
From: matan monitz @ 2010-11-28 13:27 UTC (permalink / raw)
  To: Benjamin Vanheuverzwijn; +Cc: bridge

[-- Attachment #1: Type: text/plain, Size: 2091 bytes --]

it works
i use it for transfering a port monitor via bridge
On Sun, Nov 28, 2010 at 12:21 AM, Benjamin Vanheuverzwijn <bvanheu@gmail.com
> wrote:

> Hi,
>
> Yes that's wat i thought but reading
> http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#Showing_devices_in_a_bridge tells
> me that if i set aging time to 0, it will makes all entry permanent.
>
> The aging time is the number of seconds a MAC address will be
>
> kept in the forwarding database after having received a packet
>
> from this MAC address.
>
> The entries in the forwarding database are periodically timed out
>
> to ensure they won't stay around forever.
>
> Normally there should be no need to modify this parameter,
>
> but it can be changed with (time is in seconds).
>
>
>> # brctl setageing bridgename time
>
>
>> Setting ageing time to zero makes all entries permanent.
>
>
> My bad i did not take time to test it.
>
> Thanks for your answer i will try this!
>
> On Sat, Nov 27, 2010 at 5:16 PM, Stephen Hemminger <
> shemminger@linux-foundation.org> wrote:
>
>> On Sat, 27 Nov 2010 16:46:34 -0500
>> Benjamin Vanheuverzwijn <bvanheu@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > Is there a way to disable the mac address learning in linux using
>> "brctl" or
>> > custom code so any packet sent to the bridge will be flooded in each
>> > interfaces.
>> >
>> > I would like to do something similar as OpenBSD:
>> > $ brconfig <bridge> -learn <iface>
>> > $ man brconfig
>> > ...
>> >      -learn interface
>> >              Mark interface so that the source address of packets
>> received
>> >              from interface are not entered into the address cache.
>> > ...
>> >
>> > I tried to search on google and on the mailing-list without success.
>>
>> Just set ageing time to zero no need for special config option.
>>
>
>
>
> --
> Benjamin Vanheuverzwijn
>
> Google Talk/Jabber - bvanheu@gmail.com
> http://vanheu.ca
>
>
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>

[-- Attachment #2: Type: text/html, Size: 4996 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-28 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-27 21:46 [Bridge] Disable mac address learning Benjamin Vanheuverzwijn
2010-11-27 22:16 ` Stephen Hemminger
2010-11-27 22:21   ` Benjamin Vanheuverzwijn
2010-11-28 13:27     ` matan monitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox