LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   NIC detection problem (https://www.linuxquestions.org/questions/linux-hardware-18/nic-detection-problem-600547/)

cyber203 11-18-2007 05:44 AM

NIC detection problem
 
Hi,
I have just installed RedHat enterprise Linux 5 on an intel core 2 Dou Machine with Windows XP already installed on it problem is that my NIC is not getting dtected by RedHat whereas its working fine with windows i have tried the following but still stuck with the problem

Disabled the on board LAN option

#lspci | grep -i ehternet
it shows " ethernet controller: Realtek semiconductor co: RTL8111/8168B PCI Express gigabit Ethernet controller (rev 01) "
#modprobe 8139too
# cat /etc/modprobe.conf
it shows "alisas eth0" no other interface

also tried to manually add it using system-config-network

Kernel release is 2.6.18-8.el5, also when i issue ifconfig -a command it shows an interface "sit0" dont know abt that. Any help will be highy appreciated.

Lenard 11-18-2007 07:15 AM

Quote:

ethernet controller: Realtek semiconductor co: RTL8111/8168B PCI Express gigabit Ethernet
The 8139too driver is not the correct for either in Windows or Linux;

See: http://wiki.centos.org/HardwareList/RealTekRTL8111b

cyber203 11-21-2007 07:51 AM

well I got the driver from the link, tried to install it according to the readme file but on the very first command i got the following error

[root@localhost r8168-8.003.00]# make clean modules
make -C src/ clean
make[1]: Entering directory `/installations/r8168-8.003.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers
make[1]: Leaving directory `/installations/r8168-8.003.00/src'
make -C src/ modules
make[1]: Entering directory `/installations/r8168-8.003.00/src'
make -C /lib/modules/2.6.18-8.el5/build SUBDIRS=/installations/r8168-8.003.00/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/installations/r8168-8.003.00/src'
make: *** [modules] Error 2

Now what should I do?

Lenard 11-21-2007 08:33 AM

Install the kernel-devel and kernel-headers packages; yum install kernel-headers kernel-devel

cyber203 11-21-2007 12:10 PM

Hi Lenard,
main problem is that there is no internet connectivity available as there is no NIC so yum is unable to do any thing. any alternative?

Lenard 11-21-2007 03:19 PM

Check the installation media, from where the rpm packages are type;

rpm -Uvh kernel-headers*.rpm kernel-devel*.rpm [and maybe kernel-xen-devel*.rpm]

If you have the kernel-xen package installed then you also need the kernel-xen-devel package.

To find out first type: rpm -qa 'kernel*'


All times are GMT -5. The time now is 05:03 PM.