From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 20:18:06 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 2513316A4CE for ; Fri, 25 Jun 2004 20:18:06 +0000 (GMT) Received: from audiogram.mail.pas.earthlink.net (audiogram.mail.pas.earthlink.net [207.217.120.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A8EA43D64 for ; Fri, 25 Jun 2004 20:18:06 +0000 (GMT) (envelope-from algould@datawok.com) Received: from 20-74.lctv-b4.cablelynx.com ([24.204.20.74] helo=yoda.datawok.com) by audiogram.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1BdvwT-0002Eh-SR for freebsd-questions@freebsd.org; Fri, 25 Jun 2004 12:00:53 -0700 From: "Andrew L. Gould" To: freebsd-questions@freebsd.org Date: Fri, 25 Jun 2004 14:01:56 -0500 User-Agent: KMail/1.6.2 References: <20040625182338.48245.qmail@web20308.mail.yahoo.com> In-Reply-To: <20040625182338.48245.qmail@web20308.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406251401.56623.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b8fa6b4a2e1fa918be793ffb01d098aac350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.204.20.74 Subject: Re: LAN Internet 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: Fri, 25 Jun 2004 20:18:06 -0000 On Friday 25 June 2004 01:23 pm, sd sdfg wrote: > Hello, > > I'm a newbie and please excuse for my poor language. > I have FreeBSD 4.9 and my computer is in LAN with other people. One > of our friends is the host of the internet. I have all the data > required to connect to the internet, but I do not know how. My > network interface card is correctly installed, I can ping the IPs in > the LAN. But when I try to access some web adress with the web > browser Konqueror, I fail. > > Can you please tell what should I set up in order to have internet or > give me some link that may be helpful. I've searched in tha handbook, > but couldn't find. > > Thank you! Since you can ping the other computers on the LAN, we can assume your computer is configured for the LAN, and is just missing the information needed to send and receive packets to/from the internet. This assumes that your computer isn't blocked by a firewall. If your computer receives a dynamic IP address, talk to the person who administers the DHCP server. dhclient should receive all the information it needs to configure your network automatically. If your computer has a static IP address on the LAN, you need to manually designate the gateway computer and nameservers. If the gateway computer's IP address is 192.168.0.1, you can execute the following on the command line as root: route add default 192.168.0.1 Add the following to /etc/rc.conf to establish the gateway at bootup: defaultrouter="192.168.0.1" Nameserver information is stored in /etc/resolv.conf. I don't think /etc/resolv.conf exists when the system is initially installed, so you'll need to create it: touch /etc/resolv.conf Then add the search domain and nameserver IP address to the file. My file looks like this: search cablelynx.com nameserver 24.204.0.4 24.204.0.5 You'll need to use information that is specific to your ISP. Best of luck, Andrew Gould