From owner-freebsd-net@FreeBSD.ORG Fri Aug 18 21:14:40 2006 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 18C9B16A4DA for ; Fri, 18 Aug 2006 21:14:40 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout3.yahoo.com (mrout3.yahoo.com [216.145.54.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD1D543D49 for ; Fri, 18 Aug 2006 21:14:39 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy7.corp.yahoo.com [216.145.48.98]) by mrout3.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id k7ILE8ZG053293; Fri, 18 Aug 2006 14:14:08 -0700 (PDT) Date: Fri, 18 Aug 2006 17:14:05 -0400 Message-ID: From: gnn@freebsd.org To: Julien =?ISO-8859-1?Q?Abeill=E9?= In-Reply-To: <20060818152811.54302.qmail@web26608.mail.ukl.yahoo.com> References: <20060818152811.54302.qmail@web26608.mail.ukl.yahoo.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.6.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: ipv6 in ipv6 tunnel with FreeBSD 4.11 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: Fri, 18 Aug 2006 21:14:40 -0000 At Fri, 18 Aug 2006 15:28:11 +0000 (GMT), Julien Abeill=E9 wrote: > Hi, > =20 > I am using freebsd 4.11 and trying to setup ipv6 in ipv6 tunnels. All my stuff is on HEAD and 6 so I don't know if this applies but I think it should. > I have the following testbed > 4 machines connected in line: > =20 > M1-----------M2--------FreeBSD-------M3 > c::1---c::2 | b::2----b::1 | a::1---a::2 > =20 > I want to create a tunnel between FreeBSD (b::1) and M2 (b::2) > =20 > Here is my configuration on the FreeBSD machine: > em0 : a::1/64 > em1 b::1/64 > =20 > I do the folllowing to setup the tunnel: > =20 > ifconfig gif0 create > ifconfig gif0 tunnel b::1 b::2 > ifconfig gif0 d::1/64 > route add -inet6 -host c::1 -interface gif0 > =20 > I am not sure about what is the gif0 address d::1/64 used for. > =20 Nor am I. What directions are you following? I believe that may be there because the gif tunnel instructions talked about setting up IPv4 tunnels for IPv6. > the problem is: when i ping or send any traffic from a::2 to c::1, > the FreeBSD machine adds an ipv6 header with b::1 as source, b::2 as des= tination, but with hop count limit=3D0 > =20 > Is my configuration ok?=20 A few things to note: 1) You need to have ipv6_gateway_enable=3D"YES" set to forward packets. 2) Are you trying to tunnel between two interfaces on the same machine? It's hard to tell from your description. If the FreeBSD box is a router between two tunnels then you need two tunnel endpoints. One pointing at M2 and one pointing at M3. Best, George