From owner-freebsd-net@FreeBSD.ORG Wed Jun 8 23:31:39 2005 Return-Path: X-Original-To: FreeBSD-net@freebsd.org Delivered-To: FreeBSD-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB2EE16A41C for ; Wed, 8 Jun 2005 23:31:39 +0000 (GMT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0291643D49 for ; Wed, 8 Jun 2005 23:31:38 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id D0F86857BB; Thu, 9 Jun 2005 09:01:36 +0930 (CST) Date: Thu, 9 Jun 2005 09:01:36 +0930 From: Greg 'groggy' Lehey To: Jeremie Le Hen Message-ID: <20050608233136.GX64194@wantadilla.lemis.com> References: <20050607093717.GA76296@wantadilla.lemis.com> <20050607100958.GU41050@obiwan.tataz.chchile.org> <20050607093717.GA76296@wantadilla.lemis.com> <20050607094848.GB16223@stack.nl> <20050607231218.GD64194@wantadilla.lemis.com> <20050608084946.GI41050@obiwan.tataz.chchile.org> <20050608095703.GM64194@wantadilla.lemis.com> <20050608195837.Q65103@Neo-Vortex.net> <20050608104053.GK41050@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DNzU1U2E89wy37K+" Content-Disposition: inline In-Reply-To: <20050608104053.GK41050@obiwan.tataz.chchile.org> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: Marc Olzheim , FreeBSD-net@freebsd.org, Neo-Vortex Subject: Re: Problems with gif tunnels X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 23:31:40 -0000 --DNzU1U2E89wy37K+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wednesday, 8 June 2005 at 12:40:53 +0200, Jeremie Le Hen wrote: >>> It's currently pushing 7:30 pm, and I was going to send out a reply >>> tomorrow. But indeed, it seems that Linux people prefer GRE tunnels, >>> we prefer (with good reason) IP tunnels, and the whole issue was one >>> of documentation. After changing my tunnel from GRE to IP, it worked >>> (and works) like a charm. > > IIRC, > - Linux uses the ipip module to do IP-over-IP tunnel > - FreeBSD uses the gre(4) interface to do GRE tunnels > - GRE is a Cisco product and means ``Generic Routing > Encapsulation''. I don't know what they mean with the term > "Generic" because I have only seen IP encapsulated tunnel so far. > According to the GRE header, I guess GRE is far more powerful > than a simple IP-over-IP encapsulation, and I would be glad if > someone could explain us what are the benefits of this protocol. > I would conclude by saying that indeed Linux users tend to use > GRE tunnels whereas a IP-over-IP tunnel would be enough, because > they used to be trendy. > >> What is the difference between gre and gif tunnels anyway... the man mages >> were not that informative... > > Read above. Usually gre(4) tunnels are used as simple IP-over-IP tunnel, > so a gif(4) would do the same with less overload (due to GRE header size). > GRE seems far more powerful, but I don't know its benefits. My understanding is that GRE is to IP as PPP is to SLIP: it allows multiple protocols to be encapsulated. I've done some tracing with Ethereal, and the only difference is a four-byte header in front of the payload for GRE; in an IP tunnel, it's simply missing. I've written this up in my diary (http://www.lemis.com/grog/diary-jun2005.html#8), along with the traces. Greg -- The virus contained in this message was not detected. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --DNzU1U2E89wy37K+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCp3/YIubykFB6QiMRAvJhAJ9ZXgVqwnVxPcT/cpV1Ld5q7BHmVQCgkn/U VXCnZJmSsXNWjpPERF6tlJ0= =TJXq -----END PGP SIGNATURE----- --DNzU1U2E89wy37K+--