From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 12:41:23 2004 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 A5E2C16A4CE for ; Tue, 20 Jan 2004 12:41:23 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FDD943D73 for ; Tue, 20 Jan 2004 12:40:45 -0800 (PST) (envelope-from algould@datawok.com) Received: from 22-15.lctv-b4.cablelynx.com ([24.204.22.15] helo=yoda.datawok.com) by heron.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1Aj2fx-0002Pq-00; Tue, 20 Jan 2004 12:40:41 -0800 From: "Andrew L. Gould" To: fbsd_user@a1poweruser.com, "freebsd-questions@FreeBSD. ORG" Date: Tue, 20 Jan 2004 14:40:41 -0600 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401201440.41590.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b91ef48f1fd958d69722f076dd3625810350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Subject: Re: how to config FBSD pc to work on non-dhcp lan 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: Tue, 20 Jan 2004 20:41:23 -0000 On Tuesday 20 January 2004 02:27 pm, fbsd_user wrote: > Have FBSD gateway connected to internet with private Lan behind it. > Manually configured an MS/Windows on Lan. > Now trying to add FBSD PC to Lan. > > Put ifconfig statement in rc.conf to assign PC it's Lan IP address. > Loaded resolv.conf with IP address of ISP's DNS server. > Can ping gateway and Lan Windows box. > Gateway and Lan windows box has public access. > FBSD Lan PC can not ping Public Internet ip address or resolve > domain names. > Ping to public internet ip address get msg sendto no route to > host > 10.0.10.0/29 is the Lan subnet. Gateway is 10.0.10.2. Windows box is > 10.0.10.5. > The ifconfig display on both the gateway and FBSD lan box show the > correct > assigned IP address and broadcast ip address of 10.0.10.7 just like > what I expected. > > What other config files need to be configured on the FBSD Lan PC to > get it > to communicate through the gateway to the public internet? > > This is what I has so far on the FBSD Lan PC > > rc.conf > clear_tmp_enable="YES" > moused_enable="YES" > moused_port="/dev/psm0" > moused_type="auto" > moused_flags="-m 2=3" > > allscreens_flags="-m on -c blink -h 200" > saver="warp" > hostname="gateway.fbsdjones.com" > ifconfig_dc0="inet 10.0.10.1 netmask 255.255.255.248" > > resolv.conf > nameserver 68.168.240.2 > > The gateway's rc.conf has > ifconfig_dc0="inet 10.0.10.2 netmask 255.255.255.248" The new FreeBSD PC's /etc/rc.conf needs the following line: defaultrouter="10.0.10.2" Best of luck, Andrew Gould