From owner-freebsd-net@FreeBSD.ORG Fri Nov 7 10:47:44 2003 Return-Path: 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 7F7A416A4CE for ; Fri, 7 Nov 2003 10:47:44 -0800 (PST) Received: from relay.transip.nl (relay.transip.nl [80.69.66.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4718643FBF for ; Fri, 7 Nov 2003 10:47:43 -0800 (PST) (envelope-from freebsd@walter.transip.nl) Received: from blue.calx.nl (blue.calx.nl [213.84.201.224]) by relay.transip.nl (Postfix) with ESMTP id F340E34A4C3; Fri, 7 Nov 2003 19:47:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by blue.calx.nl (Postfix) with ESMTP id 19531A931; Fri, 7 Nov 2003 19:47:41 +0100 (CET) Received: from kai.calx.nl (kai.calx.nl [172.23.7.10]) by blue.calx.nl (Postfix) with ESMTP id 3A9A3A930; Fri, 7 Nov 2003 19:47:30 +0100 (CET) Date: Fri, 7 Nov 2003 19:47:37 +0100 From: Walter Hop X-Mailer: The Bat! (v2.00.6) Business X-Priority: 3 (Normal) Message-ID: <864138000.20031107194737@blue.calx.nl> To: Helge Oldach In-Reply-To: <200311061405.PAA15335@galaxy.hbg.de.ao-srv.com> References: <167116793500.20031106031202@blue.calx.nl> from Walter Hop at "Nov 6, 2003 3:12: 2 am" <200311061405.PAA15335@galaxy.hbg.de.ao-srv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by blue.calx.nl cc: freebsd-net@freebsd.org Subject: Re[2]: Connect two LANs over an IPv4 tunnel? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 07 Nov 2003 18:47:44 -0000 [in reply to helge.oldach@atosorigin.com, 6-11-2003] >>I would like to connect two networks (home and work), so that I can set >>up my home workstations in the same subnet as the work LAN. Out of this >>/24, I would like to use a /29 at home. >> >>(attempt 2) >> >>The gif tunnel worked and the boxes can ping eachother over it, so I >>assigned private addresses to the gif endpoints. Then I tried adding some >>home IP aliases to the work box's ethernet interface and using forwarding >>and "route delete/add" in the hope that packets would be routed to the >>gateway in private-space across gif1. > > You do not need IP aliases (I presume you mean static ARP entries), but > just need to get the routes right. Proxy ARP will do the rest for you: > > sysctl net.link.ether.inter.proxyall=1 Helge, I am eternally grateful. This simple sysctl made it all work. :) Thank you! cheers, walter