* How to hairpin two Ethernet interfaces together (L2 hub/repeater mode)?
@ 2013-02-23 0:10 Petri Gynther
2013-02-23 1:42 ` Hannes Frederic Sowa
2013-02-25 19:16 ` Jamal Hadi Salim
0 siblings, 2 replies; 3+ messages in thread
From: Petri Gynther @ 2013-02-23 0:10 UTC (permalink / raw)
To: netdev
Hi netdev:
I'd like to hairpin two Ethernet interfaces together (e.g. eth0 and
eth1) so that any frame received on eth0 is forwarded as-is to eth1
and vice versa.
Does Linux networking code support this? I've looked at the bridging
code, but it doesn't seem to do this (at least trivially).
Specifically, when eth0 and eth1 are added to bridge, unicast frames
destined to eth0 (or eth1) MAC address end up to the bridge interface
for local consumption, rather than being flooded to other ports on the
bridge.
Any trivial solutions to this? Can Linux bridge be configured in L2
hub/repeater mode so that it simply floods every Rx frame to all other
ports of the bridge?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to hairpin two Ethernet interfaces together (L2 hub/repeater mode)?
2013-02-23 0:10 How to hairpin two Ethernet interfaces together (L2 hub/repeater mode)? Petri Gynther
@ 2013-02-23 1:42 ` Hannes Frederic Sowa
2013-02-25 19:16 ` Jamal Hadi Salim
1 sibling, 0 replies; 3+ messages in thread
From: Hannes Frederic Sowa @ 2013-02-23 1:42 UTC (permalink / raw)
To: Petri Gynther; +Cc: netdev
On Fri, Feb 22, 2013 at 04:10:54PM -0800, Petri Gynther wrote:
> Any trivial solutions to this? Can Linux bridge be configured in L2
> hub/repeater mode so that it simply floods every Rx frame to all other
> ports of the bridge?
You could have a look at openvswitch, it supports (R)SPAN ports.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to hairpin two Ethernet interfaces together (L2 hub/repeater mode)?
2013-02-23 0:10 How to hairpin two Ethernet interfaces together (L2 hub/repeater mode)? Petri Gynther
2013-02-23 1:42 ` Hannes Frederic Sowa
@ 2013-02-25 19:16 ` Jamal Hadi Salim
1 sibling, 0 replies; 3+ messages in thread
From: Jamal Hadi Salim @ 2013-02-25 19:16 UTC (permalink / raw)
To: Petri Gynther; +Cc: netdev
Look at tc action redirect. Add it to ingress of eth0 to match
everything and send out on eth1.
cheers,
jamal
On 13-02-22 07:10 PM, Petri Gynther wrote:
> Hi netdev:
>
> I'd like to hairpin two Ethernet interfaces together (e.g. eth0 and
> eth1) so that any frame received on eth0 is forwarded as-is to eth1
> and vice versa.
>
> Does Linux networking code support this? I've looked at the bridging
> code, but it doesn't seem to do this (at least trivially).
> Specifically, when eth0 and eth1 are added to bridge, unicast frames
> destined to eth0 (or eth1) MAC address end up to the bridge interface
> for local consumption, rather than being flooded to other ports on the
> bridge.
>
> Any trivial solutions to this? Can Linux bridge be configured in L2
> hub/repeater mode so that it simply floods every Rx frame to all other
> ports of the bridge?
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-25 19:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-23 0:10 How to hairpin two Ethernet interfaces together (L2 hub/repeater mode)? Petri Gynther
2013-02-23 1:42 ` Hannes Frederic Sowa
2013-02-25 19:16 ` Jamal Hadi Salim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.