Help - Search - Members - Calendar
Full Version: NIC detection
MandrivaUsers.org > Advanced Topics > Laptops and Portable Devices
StimpE
what can i type in the konsole to see if linux recognizes my network device?
arctic
If it's a PCI ethernet card, type

lspci

if it's a USB device

lsusb
ianw1974
And after this, if you find the module is loaded, an:

CODE
ifconfig


will display eth0 and whether it has IP address assigned, etc.
StimpE
QUOTE
[root@localhost lando]# lspci
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics
Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Control
ler (rev 03)
00:1b.0 Class 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio
Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (r
ev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (r
ev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (r
ev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev
02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev
02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev
02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Control ler (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (re v 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA S torage Controllers cc=IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
04:00.0 Network controller: Intel Corporation: Unknown device 4222 (rev 02)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 813 6 (rev 01)
06:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller ( rev c0)
06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Contro ller (rev 01)
06:04.2 Class 0805: ENE Technology Inc ENE PCI Secure Digital Card Reader Contro ller (rev 01)
06:04.3 FLASH memory: ENE Technology Inc: Unknown device 0520 (rev 01)
06:04.4 FLASH memory: ENE Technology Inc: Unknown device 0551 (rev 01)
[root@localhost lando]# ifconfig
eth0 Link encap:UNSPEC HWaddr 00-02-3F-65-99-40-35-CC-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:6 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1112 errors:0 dropped:0 overruns:0 frame:0
TX packets:1112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:92688 (90.5 KiB) TX bytes:92688 (90.5 KiB)


Windows recognizes the NIC as Realtek RTL8139/810x Family Fast Ethernet NIC. Now what do I do? Thanks in advance.

*edit* If it matters, this is on a laptop.
tyme
Open Mandriva Control Center (AKA "Configure My Computer") from the menu's, and find the section titled Boot - where you can configure boot parameters. There is a checkbox for APIC (may have to go into advanced mode), uncheck it - then try booting and see if it is working.

This is a solution I've read on another forum. If it doesn't work, turn APIC back on.
ianw1974
This line from lspci:

QUOTE
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 813 6 (rev 01)


is your nic, and eth0 is running. Just doesn't seem to have ip, so add this to /etc/modprobe.conf:

CODE
alias net-pf-10 off


and you'll prob find it'll work better, this is common problem with realtek. The lsmod command should list something like 8139too is a module that is loaded, effectively a driver for your card.
StimpE
QUOTE (ianw1974 @ Jul 8 2006, 06:35 PM) *
This line from lspci:

QUOTE
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 813 6 (rev 01)


is your nic, and eth0 is running. Just doesn't seem to have ip, so add this to /etc/modprobe.conf:

CODE
alias net-pf-10 off


and you'll prob find it'll work better, this is common problem with realtek. The lsmod command should list something like 8139too is a module that is loaded, effectively a driver for your card.


Still nothing, here is my modprobe.conf
QUOTE
alias sound-slot-0 snd-hda-intel
alias ieee1394-controller ohci1394
install scsi_hostadapter /sbin/modprobe ata_piix; /sbin/modprobe ahci; /sbin/modprobe sbp2; /bin/true
remove snd-hda-intel /sbin/modprobe -r snd-pcm-oss; /sbin/modprobe --first-time -r --ignore-remove snd-hda-intel
install snd-hda-intel /sbin/modprobe --first-time --ignore-install snd-hda-intel && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe uhci-hcd; /sbin/modprobe ehci-hcd; /bin/true
alias wlan0 ndiswrapper
alias eth0 eth1394
alias net-pf-10 offblacklist audio

here is lspci
QUOTE
[root@localhost lando]# lspci
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:1b.0 Class 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controllers cc=IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
04:00.0 Network controller: Intel Corporation: Unknown device 4222 (rev 02)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 8136 (rev 01)
06:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev c0)
06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)
06:04.2 Class 0805: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01)
06:04.3 FLASH memory: ENE Technology Inc: Unknown device 0520 (rev 01)
06:04.4 FLASH memory: ENE Technology Inc: Unknown device 0551 (rev 01)

and here is the results of ifconfig
QUOTE
[root@localhost lando]# ifconfig
eth0 Link encap:UNSPEC HWaddr 00-02-3F-65-99-40-35-CC-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:6 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

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:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10672 (10.4 KiB) TX bytes:10672 (10.4 KiB)


Thanks for your help so far, any more ideas? :S

*edit*
I just noticed after I rebooted it edited the line you told me to add and replaced it with this
QUOTE
alias net-pf-10 offblacklist audio


Should I change it back to what you said, or will it just get changed to this again?

QUOTE (ianw1974)
The lsmod command should list something like 8139too is a module that is loaded, effectively a driver for your card.

lsmod is not showing me anything with 8139too, I'm starting to get worried lol.
ianw1974
I just realised your network card is coming up as unknown device, it should have been detected fine. Check your BIOS for PnP OS and make sure it's disabled and not set to be controlled by the OS.

Also, your eth0 as current is your firewire card.
StimpE
QUOTE (ianw1974 @ Jul 8 2006, 07:24 PM) *
I just realised your network card is coming up as unknown device, it should have been detected fine. Check your BIOS for PnP OS and make sure it's disabled and not set to be controlled by the OS.

Also, your eth0 as current is your firewire card.


I looked around in my BIOS and it doesn't have an option for PnP OS so it must be enabled by default since windows picks it up fine.

Any other ideas as to how I can get it working?
StimpE
*update*
Looks like it's a proprietary driver so I guess I'm forced to buy a $5NIC. Thanks for all your help
scarecrow
Proprietary driver? Nah, I think most (if not all) Realtek NIC's are supported natively.
Can you tell the actual model?
tyme
Did you try my suggestion of turning off APIC?
StimpE
QUOTE (tyme @ Jul 8 2006, 09:06 PM) *
Did you try my suggestion of turning off APIC?

Yes, didn't work :(

As for the actual model I think it's Realtek RL8100CL, but Windows recognizes the NIC as Realtek RTL8139/810x Family Fast Ethernet NIC

*edit*
I've tried booting the newest MEPIS distro, and it too cannot detect neither my LAN or WLAN device.
scarecrow
What's happening if uder a root console you type
modprobe 8139too
If it loads that way, then try putting the module at your startup script ( /etc/modprobe.conf ).
StimpE
QUOTE (scarecrow @ Jul 8 2006, 10:28 PM) *
What's happening if uder a root console you type
modprobe 8139too
If it loads that way, then try putting the module at your startup script ( /etc/modprobe.conf ).


I think we tried that already.
If I enter modprobe 8139too, it pauses for a sec and then prompts you for the next line.
After supposedly loading the module, it still won't show up when you run lspci..still shows up as Unkown device.
alonsoac
I have the exact same motherboard and had the same problem with detecting the network card. According to the manual it is a Realtek PCIExpress 8101E. I did 2 things, first enabled PCI Express support in the kernel which I did not have. Second I enabled the Realtek 8169 module which is in the gigabit section. Recompile, reboot. Then: modprobe r8169 . Now it works. I added a line with r8169 to /etc/modprobe.preload
I suppose you could also compile the r8169 not as a module but into the kernel and not do the modprobe stuff.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.