From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 14:44:06 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 36A0537B404 for ; Wed, 26 Mar 2003 14:44:06 -0800 (PST) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6430D43FA3 for ; Wed, 26 Mar 2003 14:44:05 -0800 (PST) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.8/8.12.7) with ESMTP id h2QMi42T076699; Wed, 26 Mar 2003 16:44:04 -0600 (CST) (envelope-from dkelly@grumpy.dyndns.org) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.12.8/8.12.7/Submit) id h2QMi3HG076698; Wed, 26 Mar 2003 16:44:03 -0600 (CST) Date: Wed, 26 Mar 2003 16:44:03 -0600 From: David Kelly To: Edinho Message-ID: <20030326224403.GA76676@grumpy.dyndns.org> References: <3E822740.3080400@netscape.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E822740.3080400@netscape.net> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-16.3 required=5.0 tests=IN_REP_TO,REFERENCES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-questions@freebsd.org Subject: Re: Need help on configuring a static internal IP address. 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, 26 Mar 2003 22:44:09 -0000 On Wed, Mar 26, 2003 at 05:18:40PM -0500, Edinho wrote: [...] > I'm using FBSD4.8 stable, my belkin router uses 192.168.2.1, subnet mask > is 255.255.255.0 and the gateway is also 192.168.2.1. > > Here's how my rc.conf looks like now: > > hostname="ecerejo.Belkin" > ifconfig_fxp0="inet 192.168.2.72" Change ifconfig_fxp0 and add defaultrouter: ifconfig_fxp0="inet 192.168.2.72/24" defaultrouter="192.168.2.1" Quickie without reboot, type this as root: ifconfig fxp0 netmask 255.255.255.0 route add default 192.168.2.1 FYI: /etc/resolv.conf was written by dhclient for you. Otherwise you would have to create it and list your upstream DNS serivce. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.