* [question] bridged tunnel
@ 2009-07-28 7:59 Jiri Pirko
2009-07-28 8:11 ` Rémi Denis-Courmont
2009-07-28 8:12 ` Philip Craig
0 siblings, 2 replies; 7+ messages in thread
From: Jiri Pirko @ 2009-07-28 7:59 UTC (permalink / raw)
To: netdev
Hello all.
Imagine following net scheme:
LAN1 --- ROUTER A --- ROUTER B --- LAN2
I would like to have LAN1 and LAN2 bridged together.
I'm wondering if it's possible to made a tunnel and put it in bridge in
kernel space only? I would do the same with TAP and some dummy userspace
client/server but this would obviously decrease performance. Is it reasonable to
try to modify tun driver to be used not only via chardev but also via some
kernel API? This API would be used for other kernel modules to actually do the
communication.
Thanks for comments.
Jirka
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [question] bridged tunnel
2009-07-28 7:59 [question] bridged tunnel Jiri Pirko
@ 2009-07-28 8:11 ` Rémi Denis-Courmont
2009-07-28 8:18 ` Jiri Pirko
2009-07-28 8:12 ` Philip Craig
1 sibling, 1 reply; 7+ messages in thread
From: Rémi Denis-Courmont @ 2009-07-28 8:11 UTC (permalink / raw)
To: ext Jiri Pirko; +Cc: netdev@vger.kernel.org
On Tuesday 28 July 2009 10:59:29 ext Jiri Pirko wrote:
> Hello all.
>
> Imagine following net scheme:
>
> LAN1 --- ROUTER A --- ROUTER B --- LAN2
>
> I would like to have LAN1 and LAN2 bridged together.
Then just put both interfaces to LAN1 and LAN2 in the same bridge... Why do
you want to bring TAP here?!
--
Rémi Denis-Courmont
Nokia Devices R&D, Maemo Software, Helsinki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [question] bridged tunnel
2009-07-28 7:59 [question] bridged tunnel Jiri Pirko
2009-07-28 8:11 ` Rémi Denis-Courmont
@ 2009-07-28 8:12 ` Philip Craig
2009-07-28 8:20 ` Jiri Pirko
1 sibling, 1 reply; 7+ messages in thread
From: Philip Craig @ 2009-07-28 8:12 UTC (permalink / raw)
To: Jiri Pirko; +Cc: netdev
Jiri Pirko wrote:
> Hello all.
>
> Imagine following net scheme:
>
> LAN1 --- ROUTER A --- ROUTER B --- LAN2
>
> I would like to have LAN1 and LAN2 bridged together.
You can do that with gretap devices.
If you don't want to use GRE, then at least it provides an
example of how to do this in the kernel.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [question] bridged tunnel
2009-07-28 8:11 ` Rémi Denis-Courmont
@ 2009-07-28 8:18 ` Jiri Pirko
2009-07-28 8:28 ` Philip Craig
0 siblings, 1 reply; 7+ messages in thread
From: Jiri Pirko @ 2009-07-28 8:18 UTC (permalink / raw)
To: Rémi Denis-Courmont; +Cc: netdev@vger.kernel.org
Tue, Jul 28, 2009 at 10:11:15AM CEST, remi.denis-courmont@nokia.com wrote:
>On Tuesday 28 July 2009 10:59:29 ext Jiri Pirko wrote:
>> Hello all.
>>
>> Imagine following net scheme:
>>
>> LAN1 --- ROUTER A --- ROUTER B --- LAN2
>>
>> I would like to have LAN1 and LAN2 bridged together.
>
>Then just put both interfaces to LAN1 and LAN2 in the same bridge... Why do
>you want to bring TAP here?!
Well generally there could be anything (e.g. internet) in between ROUTER A and
B. That's why.
>
>--
>Rémi Denis-Courmont
>Nokia Devices R&D, Maemo Software, Helsinki
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [question] bridged tunnel
2009-07-28 8:12 ` Philip Craig
@ 2009-07-28 8:20 ` Jiri Pirko
0 siblings, 0 replies; 7+ messages in thread
From: Jiri Pirko @ 2009-07-28 8:20 UTC (permalink / raw)
To: Philip Craig; +Cc: netdev
Tue, Jul 28, 2009 at 10:12:28AM CEST, philipc@snapgear.com wrote:
>Jiri Pirko wrote:
>> Hello all.
>>
>> Imagine following net scheme:
>>
>> LAN1 --- ROUTER A --- ROUTER B --- LAN2
>>
>> I would like to have LAN1 and LAN2 bridged together.
>
>You can do that with gretap devices.
>
>If you don't want to use GRE, then at least it provides an
>example of how to do this in the kernel.
Will look at this. Thanks
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [question] bridged tunnel
2009-07-28 8:18 ` Jiri Pirko
@ 2009-07-28 8:28 ` Philip Craig
2009-07-28 8:43 ` Jiri Pirko
0 siblings, 1 reply; 7+ messages in thread
From: Philip Craig @ 2009-07-28 8:28 UTC (permalink / raw)
To: Jiri Pirko; +Cc: Rémi Denis-Courmont, netdev@vger.kernel.org
Jiri Pirko wrote:
> Well generally there could be anything (e.g. internet) in between ROUTER A and
> B. That's why.
If the internet is in the middle, then you don't want to invent your own
tunneling. Using something like OpenVPN in tap mode, or gretap over IPSec.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [question] bridged tunnel
2009-07-28 8:28 ` Philip Craig
@ 2009-07-28 8:43 ` Jiri Pirko
0 siblings, 0 replies; 7+ messages in thread
From: Jiri Pirko @ 2009-07-28 8:43 UTC (permalink / raw)
To: Philip Craig; +Cc: Rémi Denis-Courmont, netdev@vger.kernel.org
Tue, Jul 28, 2009 at 10:28:05AM CEST, philipc@snapgear.com wrote:
>Jiri Pirko wrote:
>> Well generally there could be anything (e.g. internet) in between ROUTER A and
>> B. That's why.
>
>If the internet is in the middle, then you don't want to invent your own
>tunneling. Using something like OpenVPN in tap mode, or gretap over IPSec.
>
I would like to avoid overhead that openvpn and ipsec adds. In my case only few
routers are in the middle.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-07-28 8:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 7:59 [question] bridged tunnel Jiri Pirko
2009-07-28 8:11 ` Rémi Denis-Courmont
2009-07-28 8:18 ` Jiri Pirko
2009-07-28 8:28 ` Philip Craig
2009-07-28 8:43 ` Jiri Pirko
2009-07-28 8:12 ` Philip Craig
2009-07-28 8:20 ` Jiri Pirko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).