PDA

View Full Version : HELP!!! I CAN'T CONNECT TO THE INTERNET!



vzlandude
07-14-2004, 06:13 PM
Hey I'm a linux newbie and I'm having problems with the ethernet card. I'm running Knoppix 2.4 from the CD. My ethernet card is netgear FA311. I've tried lspci -v and it looks like it's recognized. But the web pages won't open, I've tried to configure the netcard and it always fails. My IP should be asigned with DHCP, but it keeps failing (I've tried to configure it with sudo netcardconfig). I've tried pump and it fails every time i try it, so I don't know what else to do. PLEASE HELP ME!!! Thanx! :wink:

UnderScore
07-16-2004, 09:22 PM
I have experienced something similar. I used knoppix 3.3 (i think) and it would behave like yours; it would see the NIC in lspci, I would run netcardconfig but it would NOT get a address via DHCP, and it would not work even if I assigned it a static IP address. Since this was on a newly built PC, I had no idea if it was actually getting a address or not. I ended up using a hub and another PC running knoppix and I used ethereal to sniff the packets on my home lan. I discovered that the NIC was physically receiving the DHCP packets but it seemed as though the kernel wasn't processing them. So with the idea that the kernel might be the problem, I searched these forums and discovered that I could try to use a knoppix cheatcode noapic at bootup. I rebooted yet again and the noapic command worked! Now the NIC would behave normally and never exhibited the strange behavior.
This NIC problem has disappeared (for me) when I use knoppix 3.4 5-17.
I hope this helps.

James

vzlandude
07-17-2004, 05:35 AM
Thanx James! I tried the knoppix cheatcode noapic at startup... it still doesn't work though... I still get the "operation failed" messages every time I run netcardconfig or pump, every time I try to ping I get the "unknown host" message, and it won't open any web page... I have no idea of what else I can try, so I'd really appreciate it if you or someone else could help me out. Thanks!

mzilikazi
07-19-2004, 05:05 AM
Hmmm well I think that card uses the natsemi driver.

lsmod

Is it loaded? If not:


sudo modprobe natsemi

pump

ifconfig -a

ping yahoo.com

shah
07-22-2004, 08:07 AM
All you need to do is enter your I.S.P nameserver. People with router and auto DHCP always forget this.

enter your I.S.P nameserver in /etc/resolv.conf

vzlandude
07-26-2004, 11:40 PM
hey, first of all thanx to the ones who replied the message!
I still have the same problem though.... First I tried what mzilikazi, but when I did pump I got "operation failed", and when I tried ping, i got the message "unknown host".
Then I tried what shah told me. I didn't know how to find my i.s.p. nameserver, so on windows I tried ipconfig /all and I got two DNS servers (200.43.32.12 and 200.43.32.13), so i figured those were the i.s.p. nameservers. Then I went back to Knoppix (I'm running it from the CD), and I edited the file /etc/resolv.conf four times, and after each time I tried pump and got "operation failed" each time, I also tried netcardconfig and got the same message, and I also tried to open a web page with the web browser and it didn't work.
The way I changed the file was this:

First time:
# Insert nameservers here
# nameserver 127.0.0.1
nameserver 200.43.32.12

Second time:
# Insert nameservers here
# nameserver 127.0.0.1
search cantv.net
nameserver 200.43.32.12

Third time:
# Insert nameservers here
# nameserver 127.0.0.1
search cantv.net
nameserver 200.43.32.12
nameserver 200.43.32.13

Fourth time:
# Insert nameservers here
# nameserver 127.0.0.1
200.43.32.12


I don't know if that was the way I was supposed to edit the file, or if I'm doing something wrong, or not doing something, but I still can't connect to the internet! HELP!!!

mzilikazi
07-27-2004, 02:42 AM
hey, first of all thanx to the ones who replied the message!
I still have the same problem though.... First I tried what mzilikazi, but when I did pump I got "operation failed", and when I tried ping, i got the message "unknown host".

But did you try it all? ;) I use a router that assigns addresses via DHCP and I have never had to manually edit /etc/resolv.conf. Let's look at the hardware. Is the NIC driver loaded?

lsmod

(post the output please)

I beleive that the natsemi is the correct driver for that card. If it's loaded try ifconfig eth0 up and/or /etc/init.d/networking restart

Again, post the output. Save the errors/output to a text file that you can access from M$ (or however you're getting online) and post them here.


Then I tried what shah told me. I didn't know how to find my i.s.p. nameserver, so on windows I tried ipconfig /all and I got two DNS servers (200.43.32.12 and 200.43.32.13), so i figured those were the i.s.p. nameservers. Then I went back to Knoppix (I'm running it from the CD), and I edited the file /etc/resolv.conf four times, and after each time I tried pump and got "operation failed" each time, I also tried netcardconfig and got the same message, and I also tried to open a web page with the web browser and it didn't work.
The way I changed the file was this:

First time:
# Insert nameservers here
# nameserver 127.0.0.1
nameserver 200.43.32.12

Second time:
# Insert nameservers here
# nameserver 127.0.0.1
search cantv.net
nameserver 200.43.32.12

Third time:
# Insert nameservers here
# nameserver 127.0.0.1
search cantv.net
nameserver 200.43.32.12
nameserver 200.43.32.13

Fourth time:
# Insert nameservers here
# nameserver 127.0.0.1
200.43.32.12


I don't know if that was the way I was supposed to edit the file, or if I'm doing something wrong, or not doing something, but I still can't connect to the internet! HELP!!!

What did /etc/resolv.conf look like as configured by Knoppix? Any of the above *should* work. Your 3rd effort looks the best to me. Which verison of windows do you use?

shah
07-27-2004, 03:39 AM
vzlandude

I don't know how your ip address configured, problem usually occured when people don't use standard ip address meant for private network.
Use standard ip address which start with : 192.168.x.x
Your nameserver :
nameserver 200.43.32.12
nameserver 200.43.32.13

then run in root konsole:
/etc/init.d/networking restart
ifconfig -a

vzlandude
08-03-2004, 11:04 PM
hey guys, well, i'm gonna start with what the file /etc/resolv.conf originally looks like:

# Insert nameservers here
# nameserver 127.0.0.1


Now I'm gonna start with the outputs:

knoppix@ttyp0[knoppix]$ lsmod
Module Size Used by Not tainted
r128 84992 14
autofs4 8756 1 (autoclean)
af_packet 13544 0 (autoclean)
agpgart 42660 3
i810_audio 25208 1
ac97_codec 11916 0 [i810_audio]
soundcore 3428 2 [i810_audio]
natsemi 17344 0
crc32 2816 0 [natsemi]
emu10k1-gp 1224 0 (unused)
gameport 1388 0 [emu10k1-gp]
jedec_probe 9072 0 (autoclean)
gen_probe 1792 0 (autoclean) [jedec_probe]
chipreg 860 0 [jedec_probe]
serial 52100 0 (autoclean)
pcmcia_core 39840 0
thermal 6564 0 (unused)
processor 8976 0 [thermal]
fan 1568 0 (unused)
button 2508 0 (unused)
battery 5888 0 (unused)
ac 1824 0 (unused)
rtc 7036 0 (autoclean)
cloop 8740 2
sbp2 16396 0 (unused)
ohci1394 22664 0 (unused)
ieee1394 183076 0 [sbp2 ohci1394]
usb-storage 61696 0 (unused)
usb-uhci 21644 0 (unused)
usbcore 57600 1 [usb-storage usb-uhci]
ataraid 6180 0
ide-cd 28512 0
ide-scsi 8816 1




root@ttyp1[knoppix]# ifconfig eth0 up
root@ttyp1[knoppix]# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...done.



I use windows xp.

Well, I hope this outputs help u figuring out what is going on with my connection, THANKS A LOT!!!! And let me know if u need any other outputs from other commands. Thanks again![/b]

crazyj23
03-31-2005, 01:45 AM
hate to dig up an old thread, but I've got the same problem with my Netgear FA311, I've tried everything described in this thread and various others pertaining to the FA311...I run Knoppix 3.7 off the LiveCD, it detects the card as natsemi (I've run lspci), and even when setting my IP and nameserver addresses manually (netcardconfig) it still wont connect and pump fails (my PC at work hops online no problem), I've tried noapic as well, still no luck...any help would be greatly appreciated, I might just pick up another network card to hopefully resolve this, this is my first experience with Linux so bear with me, here is my windows ipconfig if that helps:

Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : the_machine
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : rochester.rr.com

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : rochester.rr.com
Description . . . . . . . . . . . : NETGEAR FA311/312 PCI Adapter
Physical Address. . . . . . . . . : 00-02-E3-0B-91-50
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 24.93.1.119
24.93.1.250
24.93.1.121
Lease Obtained. . . . . . . . . . : Wednesday, March 30, 2005 7:42:50 PM

Lease Expires . . . . . . . . . . : Thursday, March 31, 2005 7:42:50 PM

Harry Kuhman
03-31-2005, 01:51 AM
Those fighting this problem (as I did) may want to look at these old threads and see if any of this seems to apply to them too:
http://www.knoppix.net/forum/viewtopic.php?t=2117&postdays=0&postorder=asc&start=0
and
http://www.knoppix.net/forum/viewtopic.php?t=2164&postdays=0&postorder=asc&start=0

tdjokic
03-31-2005, 02:18 AM
This is from my lilo.conf:

image=/boot/vmlinuz-2.6.11
label="Linux(2.6)-1"
initrd=/boot/initrd.img-2.6.11
append="ramdisk_size=100000 init=/etc/init lang=de apm=noapm nomce quiet screen=800x600 vsync=60 lang=us acpi=off"
read-only


I must have acpi=off for my integrated NIC to work. Knoppix is 3.8.

crazyj23
03-31-2005, 06:22 AM
hmmm...interesting...I'll try what's mentioned in those links...it's interesting you mention the acpi=off switch, my bios has acpi disabled as that was the only stable way I could get my w2k system to run games because of IRQ conflicts that would cause BSoD with sound/video conflicts, would I still need the switch if it's disabled in the bios? and would the noscsi switch as mentioned in the other thread affect my pci SATA controller? but thanks for the help so far

Harry Kuhman
03-31-2005, 07:02 AM
....it's interesting you mention the acpi=off switch, my bios has acpi disabled.... and would the noscsi switch as mentioned in the other thread affect my pci SATA controller? ...
It's interesting that you focus on these two switches. My notebook originally worked with Knoppix and it's network connection just fine. Stopped after a "security update", even with the very same Live CD. I came up with a few work-arounds, mainly resetting the card with mii-tool and then doing another netcardconfig. But around version 3.4 of Knoppix my system stopped booting completely (Knoppix got more agressive in it's startup code, defaulting to things like dma on). I finally found that I needed to use two cheat codes to get my system to boot, acpi=off and noscsi together. Although this seemed to have nothing to do with the network, I found that the nic would work when I used these two codes. As to how these affect your computer, I have no idea and could only guess. The best thing to do would be to try and see.

crazyj23
03-31-2005, 09:03 AM
well, what do you know...initially after a simple reboot from w2k the commands didn't work, but tried a power down, disconnect the cable modem, router and disconnected the port i was connected to, went and brushed my teeth, came back hooked everything back up, powered up, loaded knoppix with the noscsi acpi=off and I'm now typing this from knoppix :D...now I need to figure out what I do and don't need to do along the way for this to all work right, hopefully it can just reset with a PC shutdown, otherwise it could be a pain...we'll see...as a side note, everytime I'd go from knoppix to w2k I'd have to reboot an additional time or two to get w2k to re-initialize the NIC to connect, I guess it was just my luck to have a NIC with a screwy chipset :? ...then after that getting it to recognize my usb zip 250 properly

crazyj23
04-01-2005, 04:24 AM
well, I've gotten it down to a simple power down and start up knoppix with the noscsi and acpi=off switches...is there anyway to eliminate them when I'm using a permanent home on my 2nd HD, or do they have to be initiated before HW detection?