LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cable connection not working (https://www.linuxquestions.org/questions/linux-networking-3/cable-connection-not-working-214873/)

mittrekkie 08-07-2004 11:22 PM

Cable connection not working
 
I can't seem to get the Internet working. I am using a cable modem (Adelphia, Dynamic IP) through a router to my Broadcom 440x 10/100 NIC and am running MEPIS Linux (based on Debian), kernel version 2.4.22. The Internet works fine under Windows. "lsmod" shows the module "b44", and "modprobe b44" produces no message, confirming that it works. I also have tried the "bcm4400" driver (which if I recall correctly I got from the Internet), but "insmod bcm4400" produces the following error:

Using /lib/modules/2.4.22/kernel/drivers/net/bcm4400.o
/lib/modules/2.4.22/kernel/drivers/net/bcm4400.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters."
You may find more information in syslog or the output from dmesg"

I don't know which is the correct driver nor why there appear to be two drivers for my NIC. "ifconfig" produces the following text:

eth0 Link encap:Ethernet HWaddr 00:0D:56:B2:68:69
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:9
collisions:0 txqueuelen:100
RX bytes:722 (722.0 b) TX bytes:3686 (3.5 KiB)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2880 (2.8 KiB) TX bytes:2880 (2.8 KiB)

"ping 192.168.1.1" (my router) appears to pause indefinetely after displaying "PING 192.168.1.1 (192.168.1.1): 56 data bytes", and "ping www.yahoo.com" results in the message "ping: unknown host www.yahoo.com". I don't know what level of automation I should expect in connecting to the Internet, how to test the connection, or in general what has to happen correctly to connect to the Internet, major roadblocks in my fixing the problem. Does anyone have any suggestions as to how to get it working? Thanks in advance for you help.

Archite 08-08-2004 01:25 AM

try typing route or netstat -rn and see if you have a default route to your gateway, which would be your routers ip. If not you may have to add one. Let me see if I can remember how to do this...

route add default gw 192.168.1.1 eth0

Don't take my word on that, I'm using OpenBSD and trying to remember how to do it on Linux. Hope that helps:-D

mittrekkie 08-08-2004 09:40 AM

I'm not really sure how to read it, but here's the result from "netstat -rn"

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

I believe that there is a default route to the gateway based on that, but again, I don't really know what to look for. My experience with and knowledge in low-level networking are almost zero.


All times are GMT -5. The time now is 04:37 AM.