From owner-freebsd-questions Tue Jun 10 14:44:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA05664 for questions-outgoing; Tue, 10 Jun 1997 14:44:48 -0700 (PDT) Received: from xmission.xmission.com (softweyr@xmission.xmission.com [198.60.22.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA05632 for ; Tue, 10 Jun 1997 14:44:26 -0700 (PDT) Received: (from softweyr@localhost) by xmission.xmission.com (8.8.5/8.7.5) id PAA07366; Tue, 10 Jun 1997 15:42:22 -0600 (MDT) From: Wes Peters - Softweyr LLC Message-Id: <199706102142.PAA07366@xmission.xmission.com> Subject: Re: Route To: lahrg@atlanta.ds.adp.com (Gary Lahr) Date: Tue, 10 Jun 1997 15:42:13 -0600 (MDT) Cc: questions@freebsd.org In-Reply-To: <9706092041.AA28126@C108606> from "Gary Lahr" at Jun 9, 97 04:42:25 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > How do I add my default gateway to the route table? > > I looked at the man page and I'm not seeing it clearly (If you know what I > mean, my heads a little foggy). Assuming that you're on a network with a router to "the rest of the world" somewhere, and you want this route to happen every time you boot, edit /etc/sysconfig and change the following: # Set to the host you'd like set as your default router, or NO for none. # This is the same as adding a ``default'' entry to static_routes. defaultrouter="myrouter" "myrouter" should, of course, be the hostname or IP address of your router. If you use DNS exclusively for hostnames, you'd probably better use the address. Please note that on 2.2.2 and above, this file is called (I believe) /etc/rc.conf. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com