From owner-freebsd-questions@FreeBSD.ORG Tue Oct 14 20:28:36 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5AD016A4BF for ; Tue, 14 Oct 2003 20:28:36 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D41643FDD for ; Tue, 14 Oct 2003 20:28:35 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9F3SXSk031136; Tue, 14 Oct 2003 22:28:33 -0500 (CDT) (envelope-from dan) Date: Tue, 14 Oct 2003 22:28:33 -0500 From: Dan Nelson To: Edward Aronyk Message-ID: <20031015032832.GH21069@dan.emsphone.com> References: <014e01c392cb$5488e560$6501a8c0@zeta> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <014e01c392cb$5488e560$6501a8c0@zeta> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: IP Change X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 03:28:36 -0000 In the last episode (Oct 14), Edward Aronyk said: > I'm somewhat new to FreeBSD, so today when we had to deploy a new > server to the colo running FreeBSD, I ran into problems. > > Basically the server has been in the office running for the last few > weeks with a DHCP provided IP - but now that it's getting a static IP > I'm not totally sure what to do. I have all of our in information: > > Server IP: x.y.z.48 > Subnet: 255.255.255.224 > Gateway: x.y.z.33 > DNS: a.b.c.24 > a.b.c.160 > > But I'm not sure exactly what needs to change to make this all work > properly? Specifically, I can't find where to put the gateway > information. I know that on OpenBSD it was placed in /etc/mygate but > the same doesn't seem to be true in FreeBSD? Also, what should my > resolv.conf file look like? Gateway goes in /etc/rc.conf: defaultrouter="x.y.z.33" In fact, pretty much everything goes in rc.conf unless it's got a well-known config file of its own. resolv.conf would look like: domain mydomain.com nameserver a.b.c.24 nameserver a.b.c.160 -- Dan Nelson dnelson@allantgroup.com