From owner-freebsd-questions@FreeBSD.ORG Sun Aug 9 01:08:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81C731065670 for ; Sun, 9 Aug 2009 01:08:55 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 52F758FC1A for ; Sun, 9 Aug 2009 01:08:55 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 608477E818; Sat, 8 Aug 2009 17:08:54 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Sat, 8 Aug 2009 17:08:53 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <560f92640908081738m31ac75a5pf9f6c4822e427dae@mail.gmail.com> In-Reply-To: <560f92640908081738m31ac75a5pf9f6c4822e427dae@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908081708.53442.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Nerius Landys Subject: Re: Setting up LAN: no route to host X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2009 01:08:55 -0000 On Saturday 08 August 2009 16:38:39 Nerius Landys wrote: > I'm trying to set up a LAN that is isolated from the internet, and I > don't know what to put in /etc/rc.conf for certain variables. I'm > running FreeBSD 7.1 with the latest patches. > > So far my /etc/rc.conf file has the following lines: > > defaultrouter="192.168.0.1" # I would like to leave this blank, but I > put something here anyways. > hostname="speedy.i" > ifconfig_fxp0="inet 192.168.0.254 network 255.255.255.0" > ifconfig_fxp0="up" First: You override the first line with the second line. So in the end, all you accomplish is mark the interface up. Second: network in the first line should be netmask You should delete the second line (an interface will be marked up if an IP address is assigned to it) and fix the netmask keyword. You may want to read up on sh(1) how it treats variables. -- Mel