From owner-freebsd-questions Sun Feb 4 21:41: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail6.sdc1.sfba.home.com (femail6.sdc1.sfba.home.com [24.0.95.86]) by hub.freebsd.org (Postfix) with ESMTP id A721237B4EC for ; Sun, 4 Feb 2001 21:40:43 -0800 (PST) Received: from home.com ([24.12.186.185]) by femail6.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010205054043.SEGX3589.femail6.sdc1.sfba.home.com@home.com>; Sun, 4 Feb 2001 21:40:43 -0800 Message-ID: <3A7E3CDB.C55565CD@home.com> Date: Sun, 04 Feb 2001 21:40:43 -0800 From: Rob X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Tony Landells Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: direct routing help needed References: <200102050523.QAA16754@tungsten.austclear.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks Tony. I now understand why the direct route won't work. The good news is that I read a lot of man pages and the O'Reilly TCP/IP book in the process :) Maybe the sanest solution is to use NAT on my OpenBSD box. Rob. Tony Landells wrote: > > Hi Rob, > > In a nutshell, you can't route (directly) to something you're not > connected to. As soon as the IP address falls outside your subnet, > you need a gateway ON YOUR NETWORK to send it to. > > If I'm reading your email correctly, both of these computers are > on the same switch, and then there's a single cable modem carrying > two different subnets: > > ----- > Host A ----- | s | > FreeBSD | | w | > -----------| i | cable > | t |-------modem-------Internet > -----------| c | > Host B | | h | > OpenBSD----- | | > ----- > > To avoid buying a router, you basically have to have both computers > on the same (IP) network. > > The best way (IMHO) would be to throw another NIC in each computer, > connect them directly with a crossover cable, and configure them to > be on a common network (preferably from the RFC1918 selection). > > If you don't want to spend any money, you may be able to do it by > configuring alias addresses on each existing interface which happen > to be in the same network. Again, you would want to pick from > RFC1918 addresses, and your service provider may get upset if your > boxes generate, for example, broadcast traffic for RFC1918 addresses > that get sent out through the cable modem. > > Good luck, > Tony > -- > Tony Landells > Senior Network Engineer Ph: +61 3 9677 9319 > Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 > Level 4, Rialto North Tower > 525 Collins Street > Melbourne VIC 3000 > Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message