Re: Connecting to the Internet

2005-04-26 Thread Roland Smith
On Mon, Apr 25, 2005 at 07:07:35PM -0400, Broming plutonium wrote:
 Hello everyone...for the first time.
  
 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.

:-) 
 
 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 

/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 
'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=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=18VLAN_MTU,VLAN_HWTAGGING
inet 10.0.0.150 netmask 0xff00 broadcast 10.0.0.255
ether 00:11:09:8b:c2:58
media: Ethernet autoselect (100baseTX full-duplex)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00 

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 
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
-- 
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


pgpNLW0C2AA6R.pgp
Description: PGP signature


Re: Connecting to the Internet

2005-04-26 Thread Tomas Quintero
On 4/25/05, Broming plutonium [EMAIL PROTECTED] 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.
  
 Sorry--my DHCP server is a Linksys router which is supposed to assign an
 internal IP address automatically, whenever a computer asks for it. 
  
  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.
  
 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 and
 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, and
 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 change
 any settings because it will refill itself whenever I try to.
  
  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 boot
 properly. It only allows me to log on as a single user, and has #  thing
 instead of $ or computername: 
  
 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?
  
  Is sl0 internal or external? Is the FreeBSD box going to NAT for your
  second computer?
 
 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.  
  
 
 Tomas Quintero [EMAIL PROTECTED] wrote:
 On 4/25/05, Broming plutonium wrote:
  Hello everyone...for the first time.
  
  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.
  
  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 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?
  
  What do I have to do to establish an Internet connection? Any help would
 be appreciated. Thanks!
 
 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.
 
 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.
 
 Is sl0 internal or external? Is the FreeBSD box going to NAT for your
 second computer?
 
 -- 
 -Tomas Quintero
 
 
 
 
 Post your free ad now! Yahoo! Canada Personals
 
 
 
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

Connecting to the Internet

2005-04-25 Thread Broming plutonium
Hello everyone...for the first time.
 
 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. 
 
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 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?
 
What do I have to do to establish an Internet connection? Any help would be 
appreciated. Thanks!



-
Post your free ad now! Yahoo! Canada Personals
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting to the Internet

2005-04-25 Thread Tomas Quintero
On 4/25/05, Broming plutonium [EMAIL PROTECTED] wrote:
 Hello everyone...for the first time.
 
 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.
 
 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 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?
 
 What do I have to do to establish an Internet connection? Any help would be 
 appreciated. Thanks!

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.

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.

Is sl0 internal or external? Is the FreeBSD box going to NAT for your
second computer?

-- 
-Tomas Quintero
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting to the Internet

2005-04-25 Thread David Kelly
On Mon, Apr 25, 2005 at 07:07:35PM -0400, Broming plutonium wrote:
  
 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 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?

You say nothing about what version of FreeBSD, nor what you did during
installation. plip0, ppp0, nor sl0 are ethernet interfaces, they are
rarely used in this day and age of dirt cheap ethernet.

You don't say whether or not X is running or whether you are still in a
text terminal. Either way, open a command shell and type ifconfig to
see what interfaces your kernel sees.

Another thing to play with is sysinstall, the same utility which runs
when one boots off the CD can be used while the system is running. You
might wish to use it to play with and disable plip0, and look for an
ethernet interface.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting to the Internet

2005-04-25 Thread Broming plutonium
 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.
 
Sorry--my DHCP server is a Linksys router which is supposed to assign an 
internal IP address automatically, whenever a computer asks for it. 
 
 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.
 
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 and 
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, and 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 change any settings because it 
will refill itself whenever I try to.
 
 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 boot 
properly. It only allows me to log on as a single user, and has #  thing 
instead of $ or computername: 
 
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?
 
 Is sl0 internal or external? Is the FreeBSD box going to NAT for your
 second computer?

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.  
 

Tomas Quintero [EMAIL PROTECTED] wrote:
On 4/25/05, Broming plutonium wrote:
 Hello everyone...for the first time.
 
 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.
 
 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 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?
 
 What do I have to do to establish an Internet connection? Any help would be 
 appreciated. Thanks!

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.

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.

Is sl0 internal or external? Is the FreeBSD box going to NAT for your
second computer?

-- 
-Tomas Quintero



-
Post your free ad now! Yahoo! Canada Personals
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems connecting to the internet through a wireless router

2004-05-24 Thread John Murdock
I have installed FreeBSD succesfully on my Gateway M500 laptop. The only 
problem I have is that my laptop connects to the internet through a 
wireless router. My wireless card is working fine on the laptop and I 
can succesfully ping the router, but when I load up a webbrowser I get a 
Cannot find webpage error. So, it's confusing that the computer can 
connect to the router but not through the router to the internet. The 
output of ifconfig wi0 is:

wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet6 fe80::202:2dff:feb3:a0e%wi0 prefixlen 64 scopeid 0x5
 inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255
 ether 00:02:2d:b3:0a:0e
 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
 status: associated
 ssid 1475 1:1475
 stationname FreeBSD WaveLAN/IEEE node
 channel 6 automode OPEN powersavemode OFF powersavesleep 100
 wepmode OFF weptxkey 1
Everything is setup fine with DHCP. Wep is disabled on my router right 
now so the wepmode I think shouldn't matter. Any help at all will be 
greatly appreciated.

[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems connecting to the internet through a wireless router

2004-05-24 Thread Andrew L. Gould
On Mon, 24 May 2004 11:48:02 -0500
John Murdock [EMAIL PROTECTED] wrote:
 I have installed FreeBSD succesfully on my Gateway M500 laptop. The
 only problem I have is that my laptop connects to the internet through
 a wireless router. My wireless card is working fine on the laptop and
 I can succesfully ping the router, but when I load up a webbrowser I
 get a Cannot find webpage error. So, it's confusing that the
 computer can connect to the router but not through the router to the
 internet. The output of ifconfig wi0 is:
 
 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   inet6 fe80::202:2dff:feb3:a0e%wi0 prefixlen 64 scopeid 0x5
   inet 192.168.1.101 netmask 0xff00 broadcast
   192.168.1.255 ether 00:02:2d:b3:0a:0e
   media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
   status: associated
   ssid 1475 1:1475
   stationname FreeBSD WaveLAN/IEEE node
   channel 6 automode OPEN powersavemode OFF powersavesleep 100
   wepmode OFF weptxkey 1
 
 Everything is setup fine with DHCP. Wep is disabled on my router right
 
 now so the wepmode I think shouldn't matter. Any help at all will be 
 greatly appreciated.
 
 [EMAIL PROTECTED]

Step 1:  Make sure that the file /etc/resolv.conf exists.  I don't think
dhclient can create the file if it's missing.

Best of luck,

Andrew Gould
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems connecting to the internet through a wireless router

2004-05-24 Thread phest0r
I created the /etc/resolv.conf file and now it works. Amazing how simple 
that was. Thanks!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]