From owner-freebsd-questions Fri Jan 18 3:18:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 1D4F437B405 for ; Fri, 18 Jan 2002 03:18:32 -0800 (PST) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Fri, 18 Jan 2002 11:18:16 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 16RX0g-0001F0-00; Fri, 18 Jan 2002 11:16:38 +0000 Date: Fri, 18 Jan 2002 11:16:38 +0000 (GMT) From: Jan Grant X-X-Sender: To: Clark Mankin Cc: freebsd-questions Subject: Re: BSD network hired guns? In-Reply-To: <000a01c19fac$ebd3c480$0301a8c0@clicknetwork.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 17 Jan 2002, Clark Mankin wrote: > For example, whereas it's true my "default router", as you call it, > is at IP 209.180.198.22 I can only get there on eth0 (xl0 - ep0 ??) > via the gateway of 0.0.0.0 and unfortunately BSD is completely > unwilling to accept this information. It's as though BSD expects me > to have a hard wired direct connection to the gateway device. > That's not how I'm configured. I have an ethernet router connected > to a switch that feeds the other machines on the network. \\ Right, I've just checked this. The working of the Linux routing table (and the output of netstat -rn) are a little misleading. You need to do the following: - allocate the appropriate IP address for your FBSD machine, and let it know what that is (eg, 209.180.198.17); similarly, let it know the netmask for that address. - tell the FBSD machine that its "default gateway" is 209.180.198.22. From this, it will be able to calculate that the default router is on the same subnet as your NIC, and route traffic appropriately. Once you get this going, look at the output of netstat -rn on your FBSD machine; you'll see that it looks a little different (you'll be seeing things like "link#1" in the gateway column instead of 0.0.0.0). Hope this helps, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk HP-unix: Open Sauce product, available in 57 distributions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message