Date: Tue, 26 Apr 2005 20:34:40 +0200 From: Roland Smith <rsmith@xs4all.nl> To: freebsd-questions@freebsd.org Cc: Broming plutonium <zhangzhaoxi2003@yahoo.ca> Subject: Re: Connecting to the Internet Message-ID: <20050426183440.GA27747@slackbox.xs4all.nl> In-Reply-To: <20050425230736.3763.qmail@web51402.mail.yahoo.com> References: <20050425230736.3763.qmail@web51402.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2005 at 07:07:35PM -0400, 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 =20 > I've only had 2 days of experience with FreeBSD, so I don't know > anything 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 that the ones called plip0 and ppp0 are all > wrong; sl0 is the right one. FreeBSD comes with a handbook. You can find it on your disk at=20 /usr/share/doc/en_US.ISO8859-1/books/handbook/book.html (HTML version) /usr/share/doc/en_US.ISO8859-1/books/handbook/book.txt (plain text version) You can view the text version with the command=20 'less /usr/share/doc/en_US.ISO8859-1/books/handbook/book.txt' If you have the X window system running, and have a web browser (mozilla or firefox) installed, reading the HTML version is probably nicer. > FreeBSD tries to establish an Internet connection on plip0 every time > it 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 the sl0 network interface? If you run the command 'ifconfig', you'll see which interfaces are available. On my system it returns this: re0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=3D18<VLAN_MTU,VLAN_HWTAGGING> inet 10.0.0.150 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:11:09:8b:c2:58 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=3D108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000=20 You can forget about plip0 (it is shown because the system has a parallel port) and lo0 (that's the loopback interface). In my case re0 is the ethernet card. To see if you have a active ethernet card, run the following command (without the quote-marks) 'dmesg|grep Ethernet' On my system it returns: re0: <RealTek 8169S Single-chip Gigabit Ethernet> port 0xd400-0xd4ff mem=20 0xcfffbf00-0xcfffbfff irq 16 at device 11.0 on pci0 re0: Ethernet address: 00:11:09:8b:c2:58 This shows that I have a RealTek ethernet chip, that uses the re driver. It is also listed in the ifconfig output. > What do I have to do to establish an Internet connection? Any help > would be appreciated. Thanks! That depends. We need more information in order to tell you anything usefull. Do you have a DSL modem that has an ethernet connection? Or do you dial in via a modem? Roland --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCbonAEnfvsMMhpyURAt4UAJ9fPbrfrmg/AkAYiHYjh3VwOOQVqwCdE7fv Ulqc8a7N93c/SFO939zKjjw= =ql+Q -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050426183440.GA27747>