From owner-freebsd-questions@FreeBSD.ORG Tue Oct 24 14:37:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B94F016A47C; Tue, 24 Oct 2006 14:37:25 +0000 (UTC) (envelope-from ml@t-b-o-h.net) Received: from vjofn.tucs-beachin-obx-house.com (vjofn.tucs-beachin-obx-house.com [204.107.90.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1AD143E2C; Tue, 24 Oct 2006 14:35:06 +0000 (GMT) (envelope-from ml@t-b-o-h.net) Received: from himinbjorg.tucs-beachin-obx-house.com (dpc6747145123.direcpc.com [67.47.145.123]) (authenticated bits=0) by vjofn.tucs-beachin-obx-house.com (8.12.9/8.12.9) with ESMTP id k9OEYubF096803; Tue, 24 Oct 2006 10:35:00 -0400 (EDT) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1]) by himinbjorg.tucs-beachin-obx-house.com (8.13.6/8.13.6) with ESMTP id k9OEYtYx068759; Tue, 24 Oct 2006 10:34:56 -0400 (EDT) (envelope-from ml@t-b-o-h.net) Received: (from tbohml@localhost) by himinbjorg.tucs-beachin-obx-house.com (8.13.6/8.13.6/Submit) id k9OEYrYu068758; Tue, 24 Oct 2006 10:34:53 -0400 (EDT) (envelope-from tbohml) From: "Tuc at T-B-O-H.NET" Message-Id: <200610241434.k9OEYrYu068758@himinbjorg.tucs-beachin-obx-house.com> To: infofarmer@freebsd.org (Andrew Pantyukhin) Date: Tue, 24 Oct 2006 10:34:53 -0400 (EDT) In-Reply-To: X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "Tuc at T-B-O-H.NET" , freebsd-questions@freebsd.org Subject: Re: GRE to Cisco X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 14:37:25 -0000 > > On 10/24/06, Tuc at T-B-O-H.NET wrote: > > Hi, > > > > I was wondering if anyone has used GRE tunnel extensively. I'm trying to > > connect a FreeBSD system to a Cisco router. For testing ONLY I'm trying to do > > it to two devices on the same subnet. When I bring the gre up, I can't > > ping the other side. I have my FreeBSD at 192.168.3.21 and gre0 looks like : > > > > gre0: flags=9051 mtu 1476 > > tunnel inet 192.168.3.21 --> 192.168.3.149 > > inet6 fe80::212:3fff:fedd:58b2%gre0 prefixlen 64 scopeid 0x7 > > inet 192.168.3.21 --> 192.168.3.149 netmask 0xffffffff > > > > My Cisco is at 192.168.3.149 and looks like : > > > > interface Tunnel0 > > ip unnumbered Ethernet0 > > tunnel source Ethernet0 > > tunnel destination 192.168.3.21 > > ! > > interface Ethernet0 > > ip address 192.168.3.149 255.255.255.0 > > > > Ideas? > > I'm not very experienced with this, but if your routing table > lists 192.168.3.149 as reachable through the tunnel, then > the tunnel itself can't function, naturally. > It looks like the man page and lack of sleep made this a disaster... I've changed things around : FREEBSD: ifconfig wi0 192.168.3.21 netmask 255.255.255.0 up ifconfig gre0 unplumb ifconfig gre0 create ifconfig gre0 192.168.4.1 192.168.4.2 netmask 0xffffff00 link0 up ifconfig gre0 tunnel 192.168.3.21 192.168.3.149 Cisco: interface Tunnel0 ip address 192.168.4.2 255.255.255.0 tunnel source Ethernet0 tunnel destination 192.168.3.21 ! interface Ethernet0 ip address 192.168.3.149 255.255.255.0 But still can't ping 192.168.4.2 . Thanks, Tuc