PDA

View Full Version : Can't setup internet connection - Please help!



LinuxGozer
10-01-2003, 07:41 PM
I am deseperate...

I just can't get internet to work in Knoppix 3.2 (i'm running from CD).
I have a cable broadband connection and I have a ethernetcard in my computer.
Also i don't know what exactly to enter when they ask for your IP address etc. (This is the main problem!) (Of course i know my IP but all the other things i don't know).

This is the output that i get when i enter ipconfig /all in a windows prompt:


Windows IP Configuration

Host Name . . . . . . . . . . . . : cp267387-a
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : landg1.lb.home.nl
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI Ethernet Ada
pter
Physical Address. . . . . . . . . : 00-50-BF-E7-DE-88
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 217.122.38.89
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 217.122.38.1
DHCP Server . . . . . . . . . . . : 213.51.144.18
DNS Servers . . . . . . . . . . . : 213.51.129.169
213.51.144.169
Lease Obtained. . . . . . . . . . : Wednesday, October 01, 2003 8:25:29
AM
Lease Expires . . . . . . . . . . : Monday, October 06, 2003 9:03:01 AM

Ethernet adapter Local Area Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Eth
ernet NIC
Physical Address. . . . . . . . . : 00-20-ED-AE-05-34

Also i am in Holland and have a internet account from the ISP @home, so if there are any dutch guys out there that can help me, please contact me at Sebas855@hotmail.com . Thank You...

quantuumdot
10-01-2003, 08:20 PM
I guess that Linux should detect everything automatically as far as DHCP is used.

Try ping some IP, than some DNS, and if it does not work, send me results of following commands:

ifconfig

route -n

cat /etc/resolv.conf

They contain information about your network in linux kernel.

Tomasz

LinuxGozer
10-01-2003, 08:28 PM
ok, I made a screenshot of the output:

http://www.angelfire.com/dragon/delphi/screenshot.jpg

Thanks for helping me :D

rickenbacherus
10-01-2003, 09:56 PM
Open a terminal and enter this:

netcardconfig

If you get your IP via DHCP just say YES./ If not- then say no and enter info as required.

Oh and it may be necessary to edit /etc/resolv.conf and add

213.51.129.169
213.51.144.169

baldyeti
10-01-2003, 10:29 PM
A tad OT, but instead of that screen snapshot you could have captured the
output of the commands you had typed by using the script command...

Harry Kuhman
10-01-2003, 11:55 PM
Several people have posted this type of question recently. While Knoppix cretainly can be configued for this connection, I would like to point out that for anyone with a high speed DSL or cable connection it is well worth picking up a small inexpensive DSL/cable router. These devices can frequently be had for as little as ten bucks after rebate now (I paid $100 for mine a few years ago for contrast). Watch CompUSA and Best Buy for frequent sales. The router can be programmed with your account info for those who need to log in; will do PPPoE if needed. They let you build a nice local network (very handy when you have several computers, or even just to help link the notebook to the desktop) but add value even if you only plan on ever having one computer and never being visited by anyone with a laptop; they act as a firewall that adds a lot of extra protection to your system. Yes, there are some disadvantages to NAT for some applications like Net Meeting, but overall the plus greatly outweighs the minus. With a gateway router in place there is no setup issue with Knoppix at all (as long as your hardware hasn't been screwed up), you just boot Knoppix and dhcp will take care of your settings.

Unfortunately, the cheap devices I've seen don't also do dial-up, but I believe anyone using a high speed connection should use such a router, no matter what OS they use.

quantuumdot
10-02-2003, 11:16 AM
Hmm. Linux kernel support routing more than well.
So if you have spare old computer, I recommend using it as a router.

What I do in my house is that I got 486 computer and setup routing/masq and web cacheing. This is in my opinion better because allows you to have lots of computers in internal network and common browsing cache/certificates for ssh and so on.

You have to use PPPoE on Linux, to use this ,,Ethernet-dialup DSLs''

LinuxGozer
10-02-2003, 05:22 PM
I am very new to Linux so i don't know how to do that :lol:


A tad OT, but instead of that screen snapshot you could have captured the
output of the commands you had typed by using the script command...

LinuxGozer
10-02-2003, 05:23 PM
Open a terminal and enter this:

netcardconfig

If you get your IP via DHCP just say YES./ If not- then say no and enter info as required.

Oh and it may be necessary to edit /etc/resolv.conf and add

213.51.129.169
213.51.144.169

well... that's the problem.. i don't know what to enter :roll: :?
What is my Broadcast address ?! And what is a name server ?

EDIT: Also i don't know how to add those lines to my /etc/resolv.conf file because i run from CD. And when do i add those lines? If i choose YES or when I choose NO and enter the info manually... Thank you

LinuXdud3
10-02-2003, 06:04 PM
Explanation

BROADCAST ADDRESS: The ip of a server. For example if you ping www.google.nl you get PINGING<IP ADDRES> with .... enz , well this ip addres is the BROADCAST ADDRESS. ( note: 127.0.0.1 is NOT a broadcast address )
NAMESERVER: The ip of the server you use to resolve DNS names to IP's. If those servers wouldn't exist, you'd have to type http://62.195.229.87 instead of www.marnowebsite.tk ( example :p ).

Ok, so far for the word knowledge.... About the screenshot:

you could also echo the output into a file with the following command:
ifconfig >> output
route -n >> output
cat /etc/resolv.conf >> output, or simply

ifconfig >> output && route -n >> output && cat /etc/resolv.conf >> output

:)

For the network

As far as i know you cannot manually config your /etc/resolv file cause it wont be able to save it ( since root filesystem where it resides is mounted ro ).
Try using the netcardconfig command, and chosing DHCP for that. Then look for running DHCP deamons / clients ( command: ps -ef | grep dhcp and if this shows up nothing then just run ps -ef and search for it, also: try probing for your network card. for my network server i do:
modprobe fealnx
And then it goes like: Found PCI: 1
and then i can run netconfig to config everything. It would also be cool to check your setup with a router / other pc to just check for the network adapter. ( try sshing yourself if you dont have another pc, and dont do it on your loopback (127.0.0.1 ) but on your "outside" ip, run ifconfig eth0 and see if it gives any output, then try:
ssh BROADCAST IP.

Note

By looking at your screenshot, i notice that you do not have a network card installed ( correct me if im wrong! ) You're only ifconfig output is that of your Loopback which is useless to get on the internet. You should first probe for your network card. Look on the internet for the type of your eth0 card ( and which linux driver it needs ), and then install it ( or just probe for it if its installed ) Also, you told me you have 2 NIC's installed, which is basically not a good idea. I suggest removing one of them, cause it might also be an IRQ conflict ( which windows might not notice, but linux does... ).

Good luck,

grtz...

Marno vd Molen
AKA
LinuXdud3

rickenbacherus
10-02-2003, 07:38 PM
And what is a name server ?

It's a server that translates www.yahoo.com into a real ip address. Look at the output from ipconfig in windows- you will see DNS (Domain Name Server). I have a caching DNS on my router that resolves names locally- alot faster than going to my ip's DNS.


EDIT: Also i don't know how to add those lines to my /etc/resolv.conf file because i run from CD. And when do i add those lines? If i choose YES or when I choose NO and enter the info manually... Thank you

Ooops- my bad.
So do use DHCP or did your IP assign you a static ip?

baldyeti
10-02-2003, 08:00 PM
well... that's the problem.. i don't know what to enter :roll: :?
What is my Broadcast address ?! And what is a name server ?

Assuming that the windows settings you showed us in your initial post are
for the same machine (!), then you seem to be using dhcp/autoconfig,
probably getting your parameters from your cable modem. So, you
should follow rickenbacherus's advise, and use netcardconfig.
Now I am a little puzzled, as I thought DHCP is the default with knoppix
but I can't say for sure since I don't use it myself.

If you have to try the other way, and specify all the parameters yourself,
you should copy those from your windows config, plus a broadcast address
(which BTW is _not_ the address of a server but serves to determine your
"netmask") of 217.122.38.255 (I think). Plus you have to edit your /etc/
resolv.conf as explained. That's how linux knows which nameserver(s) to
contact when resolving a fully qualified host name such as
www.knoppix.net into a numerical IP address (69.56.166.99).

And -but that's a detail- as to script, you could have typed that just before
ifconfig/etc... then <Ctrl-D> after the cat, and the output of all those
commands would have been captured in a 'typescript' file easier to cut
and paste than that graphical snapshot.

Hope this helps,

-- bald

reilord
01-19-2004, 05:41 PM
Why some commands like ex. ipconfig doesn't works?

windos_no_thanks
01-19-2004, 07:37 PM
Why some commands like ex. ipconfig doesn't works?
Because the name "ipconfig" is something M$ invented. In Linux and Unix the command is called "ifconfig", the parameters are also a bit different.

reilord
01-20-2004, 11:40 AM
And what about the "iface eth0 inet static" command, it dopesn't work either...

windos_no_thanks
01-20-2004, 02:18 PM
And what about the "iface eth0 inet static" command, it dopesn't work either...
An example, your numbers will be different:


ifconfig eth0 12.34.56.78 netmask 255.255.255.0

I'd suggest you read the ifconfig man page sometime soon: :-)


man ifconfig

reilord
01-20-2004, 05:50 PM
Don't worry I'll read it, 10x.