LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need I recompile kernel to get eth0 from ifconfig? (https://www.linuxquestions.org/questions/linux-newbie-8/need-i-recompile-kernel-to-get-eth0-from-ifconfig-697260/)

stabu 01-14-2009 09:28 AM

need I recompile kernel to get eth0 from ifconfig?
 
OK, so I'm sure this question has come up before, but I didn't find it under the search terms I used.

so i have been using wireless lan on a slackware installation, and forgot how to handle wired connections.

But I do an "ifconfig -a" and there is no eth0, only my lo and wlan.

I have recompile dthe kernel a few times and - unknowingly - may have got rid of eth0 (using a an nvidia mcp51 ethernet), doubt it, but it's possible.

So .. my question ... how to get the system to find eth0 without compiling kernel?

Cheers.

Didier Spaier 01-14-2009 10:32 AM

Please send output of lspci -v

stabu 01-14-2009 11:05 AM

thanks for the offer to read it, but it _is_ a supported ethernet card, I know because I have another installation on the same computer, and eth0 _does_come up on it.

I was about to a diff on their respective kernel compile configs, but that is obviously quite alot of work, I was just looking for a quick "astuce" as one says in french.

Thanks anyway, suggestion is appreciated.

stratotak 01-14-2009 06:12 PM

you could lsmod to see if eth0 devices module is loaded..if not load it with modprobe then do ifconfig..not sure the name of the module..check it out on other linux install..you said you had another distro installed too right??if you do lspci you will be able to the chipset the eth0 uses..

Franklin 01-14-2009 09:05 PM

Did you enter the configuration for eth0 into /etc/rc.d/rc.inet1.conf?
You can do this manually as root or run netconfig from the console.

Make certain the module is loaded as mentioned by others.

Then restart the network:

/etc/rc.d/rc.inet1 restart

Assuming you are running Slackware ...

stabu 01-15-2009 12:34 PM

thanks stratotak and Franklin

the fundamental problem here is my fear of going into the kernel configuration and figuring what I should change ... I always find the kernel config naems very confusing. But I went in anyway and _did_ see a network driver from NVIDIA not enabled. So I enabled it, recompiled, and booted it up,m and it all came good.

So the answer to my question is "yes, some times you have to fight to be a man" ... I mean, "sometimes you have to recompile the kernel in order to get ethernet working". ;-D


All times are GMT -5. The time now is 12:55 PM.