PDA

View Full Version : Recognising NIC in Linux


eCK0
05-09-2004, 01:15 AM
I've had this problem with pretty much all Linux distros I've had. It just won't recognise the card. Even if it does, it seems to not like to use it. Now, this is specificly with gentoo at the moment. I do not have DHCP running. I tried net-setup eth0 and manually adding everything but that seems not to work. When I try to confirm the settings using ifconfig, well, it's hard to explain. When I ping a server it says "unknown host" which is much better than saying that there is nothing to ping with. I was hoping to get the rest of gentoo installed tonight/this morning, but it seems that I have come across a block.

Aman
05-09-2004, 09:01 AM
That really sucks...

Anyways, first, what you should do is make sure you know what your ethernet card module name/numbers are. Once you confirm those, simply do a 'modprobe <module>' name.

That SHOULD work. When you say 'manually adding everything' do you mean that by modprobing the modules yourself? If so, are you doing 'lsmod' to make sure they are in fact loading?

If you are sure all these modules are loaded, just remember to make sure they are the EXACT SAME MODULES! If not, download the modules and put them on a floppy disk, and then load the modules from that floppy.

I have never heard of Gentoo not recognizing a network card.

Give me the names of your modules and I will do some research for you :)

Aman

eCK0
05-09-2004, 09:44 AM
Well, according to Windows, the NIC is Intel 21140 - Based PCI Fast Ethernet Adapter (Generic) As for manually loading the modules, gentoo told me to look in /lib/modules/`uname -r`/kernel/drivers/net There was a bunch of files with a .o extension, but I really had no idea what to pick... so I didn't. By manually adding everything I mean I ran net-setup eth0 and answered all the questions such as what is the IP.

Aman
05-09-2004, 12:24 PM
That's not manually adding the modules.

Your module is 'tulip.o'

Load that module and then do a 'dhcpcd eth0 && ifconfig eth0 up' See what that does.

Loading it can be done by doing modprobe tulip

If that doesn't work (It almost defninitely should) then you have a problem :)

eCK0
05-09-2004, 03:56 PM
Yes! I am currently in the middle of installing gentoo. Aman, you are worthy of my man babies :p

Edit: Can't wait 'til I can get Firefox on here, links is a +++++ to use.

Aman
05-09-2004, 04:34 PM
Ah, I wouldn't say that, eCKO. After all, you have a few years of age over me (therefore more responsible :D).

Anyways, glad you got everything working. Normally, the LiveCD is very good at doing automatic hardware detection. There's a first time for everything, though. And I agree, I like Firefox better than Links :D

Good luck with Gentoo. You will never want to go back :)