Ethernet over GRE ?
Subsystems (2)
Hello, here is a little discussion I had with Stephen about iproute2. At the end, he has told me to send this to you.
Best regards,
David
----- Forwarded message from Stephen Hemminger <[email protected]> -----
X-Virus-Scanned: amavisd-new at tahiti.vyatta.com
Date: Thu, 22 Jan 2009 14:56:06 +1100
From: Stephen Hemminger <[email protected]>
To: David Lefevre <[email protected]>
Subject: Re: Ethernet over GRE ?
In-Reply-To: <[email protected]>
Organization: Vyatta
X-Mailer: Claws Mail 3.6.1 (GTK+ 2.14.5; i386-redhat-linux-gnu)
X-Spam-Status: No, score=-2.6 required=3.5 tests=BAYES_00 autolearn=ham
version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on zouzou.doff.net
Quoted 41 lines · On Mon, 19 Jan 2009 12:48:02 +0100 David Lefevre…
Quoted 40 lines · Stephen Hemminger
Quoted 36 lines · On Wed, 7 Jan 2009 16:32:45 +0100 David Lefevre…
Quoted 24 lines · Stephen Hemminger
Quoted 7 lines · On Tue, 9 Dec 2008 12:33:42 +0100 David Lefevre…
Hi Stephen,
looking at the possibility of doing Ethernet over GRE, I've found an interesting discussion on the net : https://kerneltrap.org/mailarchive/linux-netdev/2008/7/14/2454014
I've seen this capability was added in the linux kernel, but I was not able to find where :(, even in the 2.6.27.8 release.
Is this comming in next releases or already usable ?
Kind regards,
DavidIt will be in 2.6.28, this patch is the start of it.
commit
e1a8000228e16212c93b23cfbed4d622e2ec7a6bAuthor: Herbert Xu <[email protected]> Date: Thu Oct 9 12:00:17 2008 -0700gre: Add Transparent Ethernet Bridging
This patch adds support for Ethernet over GRE encapsulation. This is exposed to user-space with a new link type of "gretap" instead of "gre". It will create an
ARPHRD_ETHERdevice in lieu of the usualARPHRD_IPGRE.Quoted 7 lines
Note that to preserver backwards compatibility all Transparent Ethernet Bridging packets are passed to an
ARPHRD_IPGREtunnel if its key matches and there is noARPHRD_ETHERdevice whose key matches more closely.Signed-off-by Herbert Xu <[email protected]>Signed-off-by David S. Miller <[email protected]>Hi Stephen,
I think there a little stuff to do in the iproute2 source code to activate this gretap mode, isn't it ? David
Quoted 8 lines
Quoted 1 line
There is, and I just put into the git version yesterday
Hi Stephen,
thanks for the new release of iproute2 (corresponding to 2.6.28).
I'm still confused : I can create a "gretap" interface and add it to a bridge (with brtcl addif) but, in that case, I don't know how to use this interface as a tunnel (GRE). And if I set up a tunnel, I cannot add it as an interface in the bridge. Am I missing something ?
Regards,
David
send to Herbert Xu and [email protected]
Quoted 1 line
----- End forwarded message -----
Quoted 3 lines · David Lefevre
Quoted 3 lines
thanks for the new release of iproute2 (corresponding to 2.6.28).
I'm still confused : I can create a "gretap" interface and add it to a bridge (with brtcl addif) but, in that case, I don't know how to use this interface as a tunnel (GRE). And if I set up a tunnel, I cannot add it as an interface in the bridge.
Using gretap is the correct way to go. What do you mean that you don't know how to use it as a tunnel?
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt