Cannot connect to LANs - ifconfig and iwconfig show no devices
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Cannot connect to LANs - ifconfig and iwconfig show no devices
I've been using Linux for a couple of years now, but this is the first time I've ever had to do anything like deal with hardware etc.. I've also read as much online material about my problem as I can, with no success. So I'm a sort of psuedo-n00b!
I've just got a new Samsung R522 laptop. It has the following network cards:
I've just dual-booted the machine with Scientific Linux 5.4. If you haven't heard of it before, Scientific Linux is a derivative of Enterprise Linux, which uses Fedora / Red Hat. It has the 2.6.18 kernel, with x86_64 architecture.
Unfortunately, I can't get either network card to work. This means I can't connect to a LAN, either hard-wired or wirelessly.
Here is the output of "/sbin/lspci"
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc M92 LP [Mobility Radeon HD 4300 Series]
01:00.1 Audio device: ATI Technologies Inc R700 Audio Device [Radeon HD 4000 Series]
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Unknown device 8192 (rev 01)
06:00.0 Ethernet controller: Marvell Technology Group Ltd. Unknown device 4380 (rev 10)
For the Realtek wireless device, I've tried to install a Windows driver using ndiswrapper, which was installed with the OS. Both drivers "appeared" to install correctly. Unfortunately nothing has changed.
(yes, that's an empty return from that last command.)
Here's the really interesting thing! The "system-config-network" tool lists both devices, as "eth0" (the Marvell device) and "eth1" (the Realtek device), BUT, if I try to activate either device, they say the "device does not seem to be present, delaying initialization".
If anyone can offer any help, give me any ideas how I can get EITHER network device to work, and connect to my LANs, I'd be very, very grateful.
This has been driving me crackers for a couple of weeks now, and I need to get it sorted it ASAP. I've been trying to follow the user guides both here and elsewhere, but to no-avail.
nimnull22 and vishesh, thanks for your replies! Now I'm really going to show how little I know about all this:
vishesh, I'm not sure how to recompile my kernel, or if it's even possible in Scientific Linux (SL). I'm not even sure of the SL kernel source is available, (see here ). Could you expend a little on what you said, please? EDIT - would it be advisable to upgrade my kernel? I've read that the latest kernel (2.6.32 I believe) might offer support for either or both of my network controllers. Do you think this is worth a try? If so, can I use any kernel, e.g. from www.kernel.org? I'm willing to try upgrading my kernel, despite my inexperience.
nimnull22, I'll paste up the results of "hwinfo --netcard" ASAP.
Thanks again for your help!
Last edited by spiderjim; 11-17-2009 at 10:16 AM.
Reason: New idea!
I looked for the hwinfo, as you asked, except I couldn't find the command in my system - it returns
bash: hwinfo: command not found
Furthermore, I looked for any file "hwinfo" using the "locate" feature, but nothing was returned. I have several other "hw"-like commands, e.g. "/usr/bin/hwbrowser", which brings up the hardware browser which has a network devices section. This shows:
Marvell Technology Group Ltd. Unknown device 4380
Manufactuer: Marvell Technology Group Ltd.
I've tried "ifconfig" again, but it still just returns the "lo" device.
Scientific Linux is a derivative of Enterprise Linux, which uses Fedora / Red Hat.
In this case check if you have "lshw" utility, but I have no idea how to use it. If you do not have it, try to find rpm with it.
If you installed sk98lin driver for ethernet, you can find out is it loaded or not by "lsmod |grep sk98".
Tell us please exact name of the ethernet driver. Also (if you have) you can use "modinfo <name_of_the_driver>" utility.
So if driver is called sk98lin, use modinfo sk98lin, from root console.
OK, after much soul searching, kernel searching, and much, much anger, I've decided upon the following workaround for my problem:
* my distro is Scientific Linux 5.4, which is based on the 2.6.18 kernel (released I believe in Feb 2007).
* the newest kernel is the 2.6.32 kernel, released in Nov 2009.
* it seems the older kernels do not support the most recent hardware. This would make sense, if not solve my problem.
* after about 5 botched attempts to upgrade my kernel in Scientific Linux, I've instead switched distro's to Fedora 12, which comes with the 2.6.31 kernel, which DOES support my Marvell Yukon ethernet card. I can now access LANs through a hard-wired connection! Although this kernel does support the RTL8192 wireless controller, it does not support the RTL8192e, which mine is. Apparently the 2.6.32 kernel does have support for this RTL8192e wireless controller.
If anyone can explain to me why the guys at Scientific Linux are using a kernel that is ostensibly 3 years out of date, I'd be interested. Also, if anyone can give me tips on
(a) getting my Fedora 12 to connect to wireless networks with me RTL8192e wireless card, or
(b) easily upgrade my kernel to 2.6.32 in Fedora 12,
lsof vs netstat – which of these two Linux networking commands works better, if you want to find out which Linux networking program is running on or openning a TCP/IP network port? Take a look on these commands output, you might get the answer then.
Netstat is almost a generic networking command, although its functions or features might be varied across the diverse system platforms. The Linux netstat command is used to check or print the TCP/IP network activities of both active (established) and inactive (listening) ports. You can tweak the netstat command with its supported option switches for more useful TCP/IP network statistics.
I used to run netstat -tulpan on both Redhat and Debian Linux servers for network-related support calls. These netstat command option switches will tell me what a networking program is doing – the TCP/IP protocol in used (TCP / UDP), number of bytes dropped, local network port and its connected port at remote server (established) or local listening port of the daemon (server), the name and process ID of the networking program.
Today, however, I couldn’t find an in-house developed daemon (which we call it XML-Server) with my favourite netstat -tulpan command!
As shown in the diagram, login with root user ID and executing command netstat -tulpan | grep 2020 shows that the network port 2020 is opened and listening for connection, but the XML-Server program is unknown. When grep network port number 389, I can see the Open-LDAP daemon as well as its associated process ID in the list. (So, I’ve login as root and only root user privilege can run netstat with -p option to print all networking utilities that are running on the Linux system!).
After googling, I learnt a new Linux command. Essentially, lsof is another great Linux command used to print or find out the system resources that are currently using or holding by Linux processes!
Now, executing lsof -i | grep 2020 or lsof -i | grep xmlserver is showing me the XML-Server daemon and its process ID. Then, I can issue kill -9 command to kill off XML-Server program as part of the troubleshooting process.