From owner-freebsd-net@FreeBSD.ORG Tue Sep 14 09:59:18 2004 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 10AAF16A4CE for ; Tue, 14 Sep 2004 09:59:18 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id C409D43D58 for ; Tue, 14 Sep 2004 09:59:17 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id D760765219; Tue, 14 Sep 2004 10:59:16 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 96261-03-18; Tue, 14 Sep 2004 10:59:16 +0100 (BST) Received: from empiric.dek.spc.org (adsl-67-121-95-74.dsl.snfc21.pacbell.net [67.121.95.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id CBE5D6520E; Tue, 14 Sep 2004 10:58:49 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 5ABF063B3; Tue, 14 Sep 2004 02:58:47 -0700 (PDT) Date: Tue, 14 Sep 2004 02:58:47 -0700 From: Bruce M Simpson To: John Hay Message-ID: <20040914095847.GE809@empiric.icir.org> Mail-Followup-To: John Hay , freebsd-net@freebsd.org References: <20040913171931.GA5368@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040913171931.GA5368@zibbi.icomtek.csir.co.za> cc: freebsd-net@freebsd.org Subject: Re: route to host on same network 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: Tue, 14 Sep 2004 09:59:18 -0000 Hello there. On Mon, Sep 13, 2004 at 07:19:31PM +0200, John Hay wrote: > I'm busy trying to port mobilemesh (www.mitre.org/tech_transfer/mobilemesh) > to FreeBSD and run into a problem. I tried to port MobileMesh once too. It is a largely futile exercise. The wired segment of your network requires full multicast routing in order for MMBDP to work, effectively making MobileMesh useless for any real world deployment unless all of your border nodes are in the same AS. > The way mobilemesh works is that you use a subnet for the wireless > network and then it use host routes to route packets to hosts that are > not directly visible. Say for instance that you have hosts 1, 2 and 3 > on the 10.0.0.0/24 subnet and machines 1 and 3 can't directly see each > other, but both can see host 2, then the mobilemesh routing protocol > will try to add a host route to the other machine through host 2. On > host 1 it will do something like "route add 10.0.0.3 10.0.0.2" and > on host 3 it will do "route add 10.0.0.1 10.0.0.2". This seems to work > on Linux (where mobilemesh was developed), but I have been unable to > get it to work on FreeBSD. I have also tried various ways with and > without -interface and -iface, but none works. Is it supposed to be > possible in FreeBSD and if so does someone know how? To add a host route you want 'route add -host ' as per route(8). You shouldn't need to add an interface route unless the destination is directly visible on that network (via layer 2 e.g. ARP or Proxy ARP or some other layer 2 hack). can be the IP of an interface on your system. Regards, BMS