From owner-freebsd-net@FreeBSD.ORG Mon Sep 13 17:19:44 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 051CB16A4CE for ; Mon, 13 Sep 2004 17:19:44 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0BE743D39 for ; Mon, 13 Sep 2004 17:19:39 +0000 (GMT) (envelope-from jhay@icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i8DHJVQD006272 for ; Mon, 13 Sep 2004 19:19:31 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.12.10/8.12.10/Submit) id i8DHJVFC006271 for freebsd-net@freebsd.org; Mon, 13 Sep 2004 19:19:31 +0200 (SAST) (envelope-from jhay) Date: Mon, 13 Sep 2004 19:19:31 +0200 From: John Hay To: freebsd-net@freebsd.org Message-ID: <20040913171931.GA5368@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: 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: Mon, 13 Sep 2004 17:19:44 -0000 Hi, I'm busy trying to port mobilemesh (www.mitre.org/tech_transfer/mobilemesh) to FreeBSD and run into a problem. 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? Thanks. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org