Steps to troubleshoot the internet connection...
Hi all,
I've searched this forum and the internet (via Google) for a how to or a document that simply shows how a Linux user (Slackware user) would go about troubleshooting the internet connection on a his/her machine, but found nothing complete or adequate. In windows, if you wanted to troubleshoot the connection, you would start by checking the drivers for the network card, whether they are installed or not, if the network is enabled or disabled, what ip address the nic is getting, renew/release the ip etc...Is there anything similar to that in linux Slackware? Can someone just outline the steps that a novice would have to take to troubleshoot the internet connection on a machine that has Slackware 12.0, which is connected to a link sys router, and it gets its ip address dynamically? Thanks |
The first thing I'd do is to run "ifconfig -a" to see if 1. your NIC is there and 2. it actually has an IP address. If you have N network cards in your machine, you should see devices for each of those, listed as ethx (where x = 0, 1, ..., N - 1). Do you know what kind of network card it is? If not, post the output of lspci here. Also run lsmod and post the output (that will list the kernel modules loaded, so we can see if the appropriate one for your card is loaded).
|
Hi,
the result of ifconfig -a: Code:
lo link encap: Local Loopback The following is the output of the lspci command: Code:
00:00.0 Host bridge: Intel corporation 430TX - 82439TX MTXC (rev 01) The output of lsmod command: Code:
Module Size Used by |
Code:
dmesg Code:
lsmod Code:
ifconfig eth0 Code:
ping 66.249.73.42 Code:
dhclient eth0 That's the way to go..there are several steps and several ways of checking the things. Basically you want to know: - does the system know I have an ethernet card? - has the system got the correct driver (kernel module) for my card? - has the system loaded the appropriate driver (module)? - is the device eth0 (or something) present? - is the device eth0 configured properly? - can I ping any IP addresses? - can I get DHCP requests/answers all right, or not? The tools to determine the answers for the above questions are many; dmesg, system logfiles, lsmod, modprobe, ping, ifconfig, dhclient/dhcpcd, ... |
Is that your entire lspci output? If so, it doesn't seem like your network card is being seen. Can you give us any more info about your hardware?
|
My kernel version is: 2.6.21.5. I have the 3com Etherlink III card. And yes Nylex, that is my entire screen output.
It appears that my system does not know that I have a network card attached. Bouncer, how do you use dmesg? If I just type it, it vomits 500000 lines of text on the screen. I am a fast reader, but not that fast! Is there a way or an argument to slow the output of the dmesg so I can read it? Is there a boot.ini file somewhere that I can access. Also, how do you use modprobe? Remember comrades, I am a beginner, a nice way of saying Newbie! When you provide the commands, please provide the arguments that I would need to use to make the command useful. EDIT: its worth mentioning that when I installed my Slackware, I had to use the huge.s kernel instead of the default (hugesmp.s). Because I do not have a Pentium machine. |
Output of ifconfig eth0:
Code:
eth0: error fetching interface information: Device not found Code:
SIOCSFADDR: No such device output of dhcpcd eth0: Nothing! |
I noticed the following errors when I load into linux (only using command line):
Code:
Failed to create listening socket: address already in use |
Oh, it appears to be an ISA card and hence wouldn't show up when you run lspci. I've also found out that the module needed is 3c509, so try loading that with "modprobe 3c509" (you'll need to be root to run this). After that, check the end of dmesg to see if there's anything important there (and "ifconfig -a", too).
If you want to see the entire dmesg output, pipe the output to less: "dmesg | less" and then you can scroll up and down with the arrow keys. |
Thank you Nylex, that worked! Thank you....Thanks for the dmesg tip too. Really useful.
I got an Ip address and was able to ping google. Connection up and running, thanks everyone. PS. When I rebooted, the 3c509 module didn't start, and I had to start it manually with (modprobe 3c509) to get an Ip. Can I get it to start when linux starts? If yes, how? Thanks again everyone, you've been a great help. |
Should I edit rc.local and add "modprobe 3c509" to it? So it starts when linux starts?
EDIT: I did the above, and it seems to work just fine. Please let me know if that was the correct way of going about it. |
I think putting the line "/sbin/modprobe 3c509" in /etc/rc.d/rc.modules is perhaps the "purer" way of doing it.
|
Thanks Nylex, when I edited rc.modules, I found "/sbin/modprobe 3c509" commented, I uncommented, and it works like a charm.
|
All times are GMT -5. The time now is 09:30 PM. |