From owner-freebsd-questions@FreeBSD.ORG Tue Apr 26 18:42:21 2005 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 71C6116A4CE for ; Tue, 26 Apr 2005 18:42:21 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id C17E043D48 for ; Tue, 26 Apr 2005 18:42:20 +0000 (GMT) (envelope-from tomasq@gmail.com) Received: by zproxy.gmail.com with SMTP id 34so45856nzf for ; Tue, 26 Apr 2005 11:42:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oGsxy48CUqFBng7ou3xJEbVo5Ee+mvIRKN74WkdEy8BqSgpC7UPxHreChhISduZSnbWFTivPQ5w6Ft9BOv+EO7fDMmOMEmnVRCgAxz0sNz7rCobocJjEKwAVsE7wWL+YCNMHJAfrj1qRG0FZiqqnq2wdlCd+kBLS9CudSnhGvIg= Received: by 10.36.72.20 with SMTP id u20mr1859nza; Tue, 26 Apr 2005 11:42:20 -0700 (PDT) Received: by 10.36.2.19 with HTTP; Tue, 26 Apr 2005 11:42:20 -0700 (PDT) Message-ID: <9e46c99e050426114225705a86@mail.gmail.com> Date: Tue, 26 Apr 2005 14:42:20 -0400 From: Tomas Quintero To: Broming plutonium In-Reply-To: <20050426031926.96033.qmail@web51408.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050426031926.96033.qmail@web51408.mail.yahoo.com> cc: freebsd-questions@freebsd.org Subject: Re: Connecting to the Internet X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tomas Quintero List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 18:42:21 -0000 On 4/25/05, Broming plutonium wrote: > > Firstly, by telling the DHCP server to assign a static-IP address to a > > specific system on the network, what sort of DHCP server are you > > speaking of. Are you asking about your ISPs DHCP, a > > Linksys/Dlink/other SOHO DHCP device, or are you attempting to setup > > your own internal DHCP server such as ISC-DHCP for your LAN. > =20 > Sorry--my DHCP server is a Linksys router which is supposed to assign an > internal IP address automatically, whenever a computer asks for it.=20 > =20 > > Secondly, the quick and easy way to change around things so that sl0 > > pulls an IP is to run /stand/sysinstall and reconfigure your Network > > Interfaces. > =20 > Umm...how do I do that again? Do I just go to /stand/sysinstall, click on > Index, and click on Network Interfaces? What do I put down for the host a= nd > domain? The host is the computer name, I suppose, but I don't think I > assigned my LAN a domain. I accidentally put something for the domain, an= d > now I can't erase it because whenever I leave a textbox my computer > automatically refills it with what I wrote earlier. In fact, I can't chan= ge > any settings because it will refill itself whenever I try to. > =20 > > You could also edit rc.conf manually and set up the sl0 > > interface that way, to either pull a static or dynamic IP. > I tried that a minute ago, but it only got me into even deeper trouble. I= 'm > so careless that I forgot to put a quote, and now my computer wouldn't bo= ot > properly. It only allows me to log on as a single user, and has # thing > instead of $ or computername:=20 > =20 > How do I open a text editor to edit the rc.conf file while I'm not logged= in > (I don't think so), and while every command has # in front of it? vi > wouldn't work, and view and ex don't work either. I also have a copy of t= he > original rc.conf file; how do I dump the data into the current rc.conf fi= le > which is driving me crazy because I made an error in it? > =20 > > Is sl0 internal or external? Is the FreeBSD box going to NAT for your > > second computer? >=20 > I don't know--I think sl0 is the network card, and if I'm right it's > internal. Also, I'll be 80 when I even dare to think about making FreeBSD > NAT for my other computer. My Linksys router is the NAT router for all my > computers. =20 > =20 >=20 > Tomas Quintero wrote: > On 4/25/05, Broming plutonium wrote: > > Hello everyone...for the first time. > >=20 > > I have two computers. I very recently installed FreeBSD on my first > computer because the operating system it used to have, Microsoft Windows, > was infected by so many viruses that my computer took a million years to > open a program. > >=20 > > I've only had 2 days of experience with FreeBSD, so I don't know anythi= ng > about it. How do I connect it to the Internet using Ethernet? My computer > seemed to be telling me it had three network interfaces. I'm guessing tha= t > the ones called plip0 and ppp0 are all wrong; sl0 is the right one. > >=20 > > FreeBSD tries to establish an Internet connection on plip0 every time i= t > boots. How do I change that to sl0? How do I tell it to "tell DHCP server= to > assign IP address xxx.xxx.xxx.xxx on subnet mask xxx.xxx.xxx.xxx USING th= e > sl0 network interface? > >=20 > > What do I have to do to establish an Internet connection? Any help woul= d > be >appreciated. Thanks! >=20 > Firstly, by telling the DHCP server to assign a static-IP address to a > specific system on the network, what sort of DHCP server are you > speaking of. Are you asking about your ISPs DHCP, a > Linksys/Dlink/other SOHO DHCP device, or are you attempting to setup > your own internal DHCP server such as ISC-DHCP for your LAN. >=20 > Secondly, the quick and easy way to change around things so that sl0 > pulls an IP is to run /stand/sysinstall and reconfigure your Network > Interfaces. You could also edit rc.conf manually and set up the sl0 > interface that way, to either pull a static or dynamic IP. >=20 > Is sl0 internal or external? Is the FreeBSD box going to NAT for your > second computer? >=20 > --=20 > -Tomas Quintero >=20 >=20 >=20 > ________________________________ > Post your free ad now! Yahoo! Canada Personals >=20 >=20 >=20 FreeBSD performing NAT is really really easy. If you do a little research perhaps into PF which I'm currently trying to learn, it's pretty simple to do, compared to what I've seen from IPFW. >>> How do I open a text editor to edit the rc.conf file while I'm not logged in (I don't think so), and while every command has # in front of it? vi wouldn't work, and view and ex don't work either. I also have a copy of the original rc.conf file; how do I dump the data into the current rc.conf file which is driving me crazy because I made an error in it? You could just do: cat rc.conf.backup > rc.conf If I'm not mistaken if you have a backup copy of your rc.conf. As several people have said in this chain of emails, sl0 is not actually one of your NICs. I believe it is a serial port or something, but I don't quite remember. If you could, please post the results from 'ifconfig' and perhaps your dmesg to resolve which devices are your interfaces. Also check to make sure your interfaces are plugged in, perhaps even run the cat5 to them while you are installing so that the NIC is definitely detected by FreeBSD. --=20 -Tomas Quintero