Hello
Thanks for the reply. This still does not solve my problem for forwarding LACP PDU ( 01-80-C2-00-00-02 ).
It throws the following error,
echo 2 > /sys/class/net/brx/bridge/group_fwd_mask
bash: echo: write error: Invalid argument,
I suppose this error is from this piece of code in file net/bridge/br_sysfs_br.c function group_fwd_mask_store
if (val & BR_GROUPFWD_RESTRICTED)
return -EINVAL;
Is there anyway I can bypass this check .
Jogesh
On Tue, Nov 25, 2014 at 3:13 PM, Stephen Hemminger <stephen@xxxxxxxxxxxxxxxxxx> wrote:
Link local packets are not meant to be forwarded.On Tue, 25 Nov 2014 10:12:02 -0800
jogesh panda <jogesh.panda@xxxxxxxxx> wrote:
> Hi
>
> I have two virtual machine. In side each VM, there is a Switch emulation.
> Two create connection between emulated switches, I have create Tutap
> Interfaces in the host which are seen as Virtual Interfaces inside the VMs.
> The tuntap Interfaces are connected by brctl bridge.
>
> I am having problem with the LACP PDUs, which needs to be forwarded by the
> bridge. Stp is disabled on the bridge. Bridge is consuming the LACP PDUs
>
> I have programmed the ebtables as following
>
>
> $ sudo ebtables -L
> Bridge table: filter
>
> Bridge chain: INPUT, entries: 2, policy: ACCEPT
> -p 0x8809 -j ACCEPT
> -p 0x8809 -j ACCEPT
>
> Bridge chain: FORWARD, entries: 2, policy: ACCEPT
> -p 0x8809 -j ACCEPT
> -p 0x8809 -j ACCEPT
>
> Bridge chain: OUTPUT, entries: 1, policy: ACCEPT
> -p 0x8809 -j ACCEPT
>
> I am using Linux
> uname -a
> Linux Nile 3.5.0-45-generic #68~precise1-Ubuntu SMP Wed Dec 4 16:18:46 UTC
> 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> Any help is much appreciated.
>
> Thanks in advance.
> Jogesh
There is a special forwarding mask in current version of bridge.
commit 515853ccecc6987dfb8ed809dd8bf8900286f29e
Author: stephen hemminger <shemminger@xxxxxxxxxx>
Date: Mon Oct 3 18:14:46 2011 +0000
bridge: allow forwarding some link local frames
This is based on an earlier patch by Nick Carter with comments
by David Lamparter but with some refinements. Thanks for their patience
this is a confusing area with overlap of standards, user requirements,
and compatibility with earlier releases.
It adds a new sysfs attribute
/sys/class/net/brX/bridge/group_fwd_mask
that controls forwarding of frames with address of: 01-80-C2-00-00-0X
The default setting has no forwarding to retain compatibility.
One change from earlier releases is that forwarding of group
addresses is not dependent on STP being enabled or disabled. This
choice was made based on interpretation of tie 802.1 standards.
I expect complaints will arise because of this, but better to follow
the standard than continue acting incorrectly by default.
The filtering mask is writeable, but only values that don't forward
known control frames are allowed. It intentionally blocks attempts
to filter control protocols. For example: writing a 8 allows
forwarding 802.1X PAE addresses which is the most common request.
Reported-by: David Lamparter <equinox@xxxxxxxxxx>
Original-patch-by: Nick Carter <ncarter100@xxxxxxxxx>
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>
Tested-by: Benjamin Poirier <benjamin.poirier@xxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>