LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FC9 : Not detecting Lan Card (https://www.linuxquestions.org/questions/linux-newbie-8/fc9-not-detecting-lan-card-676684/)

vaibhavs 10-16-2008 12:31 AM

FC9 : Not detecting Lan Card
 
Hi,

I have 2 identical PCs (Intel 915 MBD with 4 GB RAM, 180 GB HDD).

I installed FC9 on 1st PCs.
Setup networking, firewall, services etc, all is working fine.

Then, I made a mirror image of this HDD onto another HDD2.
Installed HDD2 in the 2nd PC.

When I boot the 2nd PC, everything works fine, apart the eth0.
FC9 does not detect a NIC (On board).

When I run "ifup eth0" command, I get an error message "no eth0 found...".

What could be going wrong.
Identical PCs, mirrored HDDs! It should work fine.

I tried kudzu, but realized that kudzu has been replaced with HAL in FC9
No idea how to run HAL to force a h/w detection.

Please help.

Thx
Vai

PS: The NIC is working fine. I installed M$ XP and NIC is working fine.

jschiwal 10-16-2008 02:02 AM

Look at the kernel modules loaded for the computer that works. (lsmod)

Also look at the hardware detected by the kernel. This command will filter out the other devices:
/sbin/lspci -v | sed -n '/Ethernet/,/^$/p'

Example:
Code:

03:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
        Subsystem: Netgear Device 311a
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
        I/O ports at ac00 [size=256]
        Memory at fddfe000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at fdc00000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169


Since one computer has a cloned drive, make sure that you change the hostname and if you use static addressing, the IP address. If using dhcpd then check that there is a unique identifier in /var/lib/dhcpcd/.
For example:
Code:

IPADDR='169.254.242.190'
NETMASK='255.255.0.0'
NETWORK='169.254.0.0'
BROADCAST='169.254.255.255'
LEASEDFROM='0'
LEASETIME='20'
RENEWALTIME='10'
REBINDTIME='17'
INTERFACE='eth0'
CLASSID='dhcpcd 3.2.3'
CLIENTID='01:00:17:31:ab:78:a9'
DHCPCHADDR='00:17:31:ab:78:a9'

Also try running the network setup. You may need to delete the nic device in the devices setup and start over. The device may have been given a unique hardware identifier and this information may be wrong if it is based on or contains the MAC address.

vaibhavs 10-16-2008 05:26 AM

@jschiwal
Thx for your suggestions.
I am trying them 1-by-1.


Both the Servers are on Static IP. I have changed the IP and host name of PC2.

Thx.
Vai

vaibhavs 10-16-2008 05:50 AM

On PC-1 (working), when I hit this command: /sbin/lspci -v | sed -n '/Ethernet/,/^$/p'
I get the output as shown by you.

On PC-2 (non-working) I get no output.
The system just wants. Finally I have to press Ctrl C to come back to the system prompt.



On PC-1, when I type "setup" >> "Network Configutaion", I get the eth0 (eth0) - Realtek Simiconductor.....

On PC-2, when I type "setup" >> "Network Configutaion", I get the eth0 (eth0) - Ethernet.
No decide identity is shown

What could be wrong ??
Is there any way to force hardware detection, like kudzu ?

Waiting for some help!
Thx in advance.
Vai

vaibhavs 10-16-2008 06:06 AM

lsmod on both PCs shows
--------------------------------
r8169 27396 0
--------------------------------

What else can I do ??

Pls help!

jschiwal 10-16-2008 08:47 AM

Maybe try unloading and reloading the r8169 kernel module. You said the computers are identical so identical hardware will use the same kernel modules. (Although sometimes even identical wireless devices use different controlers. E.G. A linksys model used 3 different wireless controllers in it's history). Make sure you don't have the "noacpi" boot option. That can interfere with assigning interupts on modern pc's.

Be sure to read through the boot messages. It sounds like you may have a hardware problem.
Also try restarting the hald and dbusd daemons.

Also look at "sudo /usr/sbin/hwinfo --netcard". Maybe diff the output between the two computers to point out any differences.
Running hwinfo might kick things into gear as well.

vaibhavs 10-16-2008 11:33 PM

I found one of the problem areas.
The MAC address of on-board lan is different.

Now the PC-2 has 2 adapters:
eth0 = Ethernet (which is blank) - Does not initialize
eth1 = Realtek Ethernet - this works fine

Any idea how I can delete both adapters and create them fresh so that RealTek (onboard) is setup as eth0.


Thx
Vai

jschiwal 10-18-2008 07:03 PM

How many nic devices do you have? If just one, look in /etc/sysconfig/network/. You can delete the hardware profile that is wrong and delete ifcfg-eth0. Then rename ifcfg-eth1 to ifcfg-eth0.

Graphically, you can delete the interface in your gui network config tool.


All times are GMT -5. The time now is 01:02 AM.