From owner-freebsd-questions Fri Oct 29 12:35:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 5F5CD155A1 for ; Fri, 29 Oct 1999 12:35:36 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA57395; Fri, 29 Oct 1999 14:35:26 -0500 (CDT) (envelope-from dan) Date: Fri, 29 Oct 1999 14:35:25 -0500 From: Dan Nelson To: Sam Samalin Cc: Zhihui Zhang , freebsd-questions@FreeBSD.ORG Subject: Re: Where is the routing table? Message-ID: <19991029143525.A54252@dan.emsphone.com> References: <3819E3DD.CBF8BAC8@ionet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3819E3DD.CBF8BAC8@ionet.net>; from ssamalin@ionet.net on Fri, Oct 29, 1999 at 02:13:49PM -0400 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 29), Sam Samalin said: > Zhihui Zhang wrote: > > I know two facts about routing tables: (1) They are definitely > > needed by a router; (2) They can be shown with netstat -rn command. > > I am not sure whether a normal host that is not configured as a > > gateway (TCP/IP gateway == router, right?) should have a routing > > table. Anyway, my machine (not a router) does display a small > > routing table with "netstat -rn". > > > > So is a routing table needed for a normal host that is not a > > router? Why? > > All tcp hosts route. Hosts that aren't routers usually have a simple > routing table with one route: the default route which routes to a > router. Also note that under FreeBSD, the routing table and the arp table are the same, so a "netstat -rn" will show arp entries as well as standard IP routing entries. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message