From owner-freebsd-net Wed Jan 31 18:17:39 2001 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 735CC37B698 for ; Wed, 31 Jan 2001 18:17:20 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id f112HKv00433; Thu, 1 Feb 2001 02:17:20 GMT (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.2/8.11.1) with ESMTP id f111sOY05179; Thu, 1 Feb 2001 01:54:24 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200102010154.f111sOY05179@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: parminder.mudhar@bt.com Cc: freebsd-net@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: Routes and tunnels In-Reply-To: Message from parminder.mudhar@bt.com of "Wed, 31 Jan 2001 17:01:51 GMT." <71DA16F18D32D2119A1D0000F8FE9A9409D21C67@mbtlipnt01.btlabs.bt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 01 Feb 2001 01:54:24 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org If you mean a packet destined for the source address of the POINTOPOINT link, then yes, this is intentional. If you want to be able to ping the local end you'll need a route on lo. > Hi > > I don't know if this is intentional or a bug, but if ifconfig is used to > configure a point to point device, such as 'tun' or the newer 'gif' devices, > then the kernel insists on installing a route where the destination is the > end point of the tunnel, the gateway is the source of the tunnel and the > interface is the device itself. I have checked this in version 3.2+KAME, > what I a using, and also on version 4.1. The effect of the above is that the > packet that uses the tunnel will never appear on the wire. > > Here is an output > > the_swamp# ifconfig gif0 132.146.115.164 132.145.113.1 > the_swamp# netstat -rnf inet > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > default 132.146.115.1 UGSc 1 0 fxp1 > 127.0.0.1 127.0.0.1 UH 0 4 lo0 > 132.145.113.1 132.146.115.164 UH 0 0 gif0 > 132.146.115/24 link#2 UC 0 0 fxp1 => > 132.146.115.1 0:30:19:9a:e4:71 UHLW 2 0 fxp1 460 > > I am also interested in using gated with point to point tunnels, but gated > also insists on doing the above for point to point links. > > I thank you in advance for any advice you may have. > > Parminder Mudhar > __________________________ > parminder.mudhar@bt.com -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message