* [Bridge] Tap and Bridge problem
@ 2013-07-06 15:22 Lambert Laurent
2013-07-07 19:56 ` Marek Kierdelewicz
0 siblings, 1 reply; 3+ messages in thread
From: Lambert Laurent @ 2013-07-06 15:22 UTC (permalink / raw)
To: bridge
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
Hi,
I'm currently trying to use bridge and tap for my work. In my setup I use
two programs communicating though tap interface. I connect the two tap
interface with a bridge.
Now comes the problem, currently only broadcast or multicast frames goes
through the bridge. Every unicast frame get drop (or stuck) between the
bridge and the input of the tap device. I traced this with tcpdump. The
message is seen on the sender tap if, on the bridge and disapears on the
receiver tap if.
Also the frame seems to be well formated (tcpdump identifies it properly).
to instanciate a bridge i use :
brctl addbr br0
brctl addif br0 tap0
brctl addif br0 tap1
i then ifconfig up the bridge and the two tap interface.
I also noticed in linux log that the bridge puts tap port in disabled
state.
Did anyone this behavior in the past time ?
Thank you.
--
Lambert Laurent
[-- Attachment #2: Type: text/html, Size: 1140 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bridge] Tap and Bridge problem
2013-07-06 15:22 [Bridge] Tap and Bridge problem Lambert Laurent
@ 2013-07-07 19:56 ` Marek Kierdelewicz
2013-07-08 8:12 ` Lambert Laurent
0 siblings, 1 reply; 3+ messages in thread
From: Marek Kierdelewicz @ 2013-07-07 19:56 UTC (permalink / raw)
To: Lambert Laurent; +Cc: bridge
> Hi,
Hi,
>I'm currently trying to use bridge and tap for my work. In my setup I
>use two programs communicating though tap interface. I connect the two
>tap interface with a bridge.
>...
>Now comes the problem, currently only broadcast or multicast frames
>goes through the bridge. Every unicast frame get drop (or stuck)
>between the
>Did anyone this behavior in the past time ?
Yes. Try using veth pair interfaces:
ip link add name veth1 type veth peer name veth2
You'll get veth1 and veth2 pair that act as a "wormhole". Now add veth1
to the bridge and use veth2 with your program in the way you used tap.
If you need second pair just repeat procedure with different interface
names.
Best regards,
Marek Kierdelewicz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bridge] Tap and Bridge problem
2013-07-07 19:56 ` Marek Kierdelewicz
@ 2013-07-08 8:12 ` Lambert Laurent
0 siblings, 0 replies; 3+ messages in thread
From: Lambert Laurent @ 2013-07-08 8:12 UTC (permalink / raw)
To: Marek Kierdelewicz; +Cc: bridge
[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]
Hi,
Thank you for your answer. From what i understand two tap interface can't
speak together though a bridge. so the idea is to have two veth pair
between each tap and the bridge. I should get the following topology:
Tap0 == <Veth10> == <Veth00> == bridge == <Veth01> == <Veth11> == Tap1
Now i'm not sure to understand how to connect the tap device to the Veth.
Can you give me a hint on that part ?
Thank you
2013/7/7 Marek Kierdelewicz <marek@piasta.pl>
> > Hi,
>
> Hi,
>
> >I'm currently trying to use bridge and tap for my work. In my setup I
> >use two programs communicating though tap interface. I connect the two
> >tap interface with a bridge.
> >...
> >Now comes the problem, currently only broadcast or multicast frames
> >goes through the bridge. Every unicast frame get drop (or stuck)
> >between the
> >Did anyone this behavior in the past time ?
>
> Yes. Try using veth pair interfaces:
> ip link add name veth1 type veth peer name veth2
> You'll get veth1 and veth2 pair that act as a "wormhole". Now add veth1
> to the bridge and use veth2 with your program in the way you used tap.
>
> If you need second pair just repeat procedure with different interface
> names.
>
> Best regards,
> Marek Kierdelewicz
>
--
Lambert Laurent
[-- Attachment #2: Type: text/html, Size: 1939 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-08 8:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-06 15:22 [Bridge] Tap and Bridge problem Lambert Laurent
2013-07-07 19:56 ` Marek Kierdelewicz
2013-07-08 8:12 ` Lambert Laurent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox