LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-10-2010, 11:36 AM   #1
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Rep: Reputation: 15
Trouble with second network card


I'm building a server which needs two ethernet ports on it. I have tried using both a DELL GX270 and a ThinkCentre (8171 WHB) and get the exact same result:

1. The computer (ether one) has a build in NIC (network card) and PCI slots.
2. When I put any 3Com card in the PCI slot (e.g, 3c905tx) it will show up in "lspci" (see below), but will never show a connection with mii-tool ("no link")

This isn't my first spin around the linux block, over the years I've build a number of servers like this ... in face one is operating in my basement. I've tried different NICs, different computers ... and Knoppix, Debian Lenny, and Ubuntu 10.0.4. I've tried modprobe 3c59x, rmmod 3c59x, then reinstalling. In the past I've used 3com cards because they are very linux friendly ... what am I missing here? Has something changed since my last server that I'm just not getting>

lspci shows (for the non-working card):

0a:09:0 Ethernet controler: 3Com Corporation 3c905C-TX/T-M [Tornado] (rev 30)

I'm using Ubuntu 10.04 ... although I've tried Debian Lenny, Knoppix, etc.
 
Old 06-10-2010, 11:47 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Could be a number of things going wrong, so more diagnosis is needed.

1) With only the built-in card installed, does that card work fine? You have a/the right driver for it, and it communicates ok?

2) If yes to #1, repeat for the second card: If possible, disable the built-in one via the BIOS, or if not possible, Install the second card, reboot, disable the built-in one by removing any kernel driver/module for it, shut down and restart the entire networking subsystem of the machine but only enable the second card. Now, does that card work and communicate fine? (Assuming you again have a correct driver for the card).

3) If after above, you have determined that each card works fine alone, and that the problem only happens when both cards are installed and have drivers inserted, I suggest three possibilities:

3-a) Whichever card is not working is defective.
3-b) Both devices are being given IP addresses which are on the same subnet -- this won't work -- assign different subnets to each respective card and try again.
3-c) or finally, something more hard to diagnose -- some sort of slot/IRQ conflict between the two cards, which has been known to occur on a variety of different machines. Assigning IRQ lines (and ports maybe) to each card via the BIOS *might* help.

Any chance you have monitored kernel log or syslog while playing around with this setup? The logs can provide clues about what's going on (or not) when trying to diagnose this sort of thing.

Keep us posted!

Sasha
 
Old 06-10-2010, 12:02 PM   #3
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Original Poster
Rep: Reputation: 15
Sahsa, Thanks for quick response. I have tried all that you said. Indeed the onboard works just fine. I have disabled the on-board card via the bios and also by removing its module: Still the 2nd card was not recognized. I have tried other cards (in fact the one I'm use is from a fresh decomissioned server where it operated just fine until a few days ago). I've also, as I mentioned, tried both a Dell and a ThinkCentre.

The cards at not being assigned the same ip, although the issue occurs before this: The lights on the card should be showing a signal (which it does not) and mii-tool and ethtool should show a link (which they do not). I have, though, assigned addresses just to see if mii-tool and ethtool where giving me false responses: They were not ... I could not ping, e.g., with the non-working card. Also, ethtool -p eth1 will not light up the card, but it will light up eth0. (BTW: This holds for whichever of the five network cards I put in!) I have look at the IRQs and there doesn't SEEM to be a conflict, but I admit to being on shaky ground when it comes to interrupts!

I'm at wits end: I've set up a number of these and never had a problem, esp with 3Com cards .... I was sure it was the Dell or the card and that when I sticked to the ThinkCentre and another card all would be fine ... no go.

Tell me what look info you would like and I can give it to you.
 
Old 06-10-2010, 12:14 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Forgive me, but I wish to clarify:

Not only must the cards each have a different IP address, but also a different subnet. Watch:

card1= 192.168.2.6
card2= 192.168.2.7

Above, they are different IP's, but the same subnet (the mask would be 255.255.255.0 or in other words, the 2 is the same for both addresses)

Now look:

card1= 192.168.2.6
card2= 192.168.3.7

Notice I have put the second card on subnet 3 instead of 2, or in other words, the mask would be 255.255.0.0

So, please verify that you indeed have each card on its own subnet as well as (which it obviously will ) having a different IP.

I don't have any 3Com cards, so I can't give direct-experience sort of help with this specific make, but in my server here which has had 2 and 3 NIC's in it, I banged my head for a week or so before figuring out the subnet thing; the symptoms were similar to yours -- I could use one card, or the other, alone, but with more than one in the machine, one or more played dead! For the record, my server has Tulip-based NIC cards which work great.

And, as I said, I have no direct experience with 3Com, so I leave it to you to make sure you do have the right driver for your 3Com, and that the card works with the driver, and is not physically defective.

Plus -- remember to monitor the logs while fiddling around. A good way is to open two terminals, and use the `tail -f` command to follow each of kernel log and syslog; meanwhile, use a third terminal for your NIC fiddling.

Sasha
 
Old 06-10-2010, 12:30 PM   #5
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Original Poster
Rep: Reputation: 15
Again thx for the prompt reply. I don't wish to comment on the subnet issue, but bear in mind that the error is happening at a lower level than card configuration. mii-tool will show whether the card is active and seeing ethernet signal regardless of whether it configured in /etc/network/interfaces. The key issue here is this: lspci sees the card, but mii-tool reports no signal. The error is happening well before the cards need to be configured. (For the record I did configure the cards correctly and it makes no difference ...)

In regards to cards: I tried five cards, and also two computers ... perhaps all the cards are dead, and perhaps the PCI slots in both computers are dead ... I suspect there is something else ... but will try a 3rd computer and a six card.
 
Old 06-10-2010, 12:34 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'm intrigued; you've tried a lot of cards & computers, so definitely something subtle and elusive going on. Sorry I wasn't able to help, but please do let us know how this progresses!

Sasha
 
Old 06-10-2010, 01:26 PM   #7
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Original Poster
Rep: Reputation: 15
Just for the record I got a SECOND ThinkCentre S51 and a ANOTHER 3com network card: It is behaving as before: lspci sees it fine; mii-tool doesn't detect signal from the cable (which works fine in the onboard adapter); ethtool has a fit with ethtool -p eth1 (this blinks the adapter, pretty handy trick when it works!)
 
Old 06-10-2010, 01:39 PM   #8
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by whammack View Post
0a:09:0 Ethernet controler: 3Com Corporation 3c905C-TX/T-M [Tornado] (rev 30)
What is the output of "lspci -nn" for that card?
 
Old 06-10-2010, 01:50 PM   #9
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Original Poster
Rep: Reputation: 15
When using Knoppix 6.2 for the command

lspci -nn is:

I get this for the troublesome card [complete output is at end of this post]

0a:09.0 Ethernet controller [0200]: 3Com Corporation 3c905C-TX/TX-M [Tornado] [10b7:9200] (rev 30)

Another thought: The build in controller is gigabit - Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet. The manual for the S51 ThinkCentre lists an optional Intel Pro/1000T (22P6509) Network Adapter ... the 3Com cards I'm using are 100T max ... is it possible that I need to use the Intel 1000T card and not older 3Com ones?

Here is the complete output from lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub [8086:2580] (rev 04)
00:02.0 VGA compatible controller [0300]: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller [8086:2582] (rev 04)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [8086:2658] (rev 03)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 [8086:2659] (rev 03)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 [8086:265a] (rev 03)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 [8086:265b] (rev 03)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [8086:265c] (rev 03)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev d3)
00:1e.2 Multimedia audio controller [0401]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller [8086:266e] (rev 03)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge [8086:2640] (rev 03)
00:1f.2 IDE interface [0101]: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller [8086:2651] (rev 03)
00:1f.3 SMBus [0c05]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller [8086:266a] (rev 03)
0a:09.0 Ethernet controller [0200]: 3Com Corporation 3c905C-TX/TX-M [Tornado] [10b7:9200] (rev 30)
0a:0b.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet [14e4:1654] (rev 03)
 
Old 06-11-2010, 08:49 AM   #10
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by whammack View Post
0a:09.0 Ethernet controller [0200]: 3Com Corporation 3c905C-TX/TX-M [Tornado] [10b7:9200] (rev 30)
According to the code in this driver
http://lxr.linux.no/#linux+v2.6.34/d...t/3c59x.c#L400
on line 400, your card is supported. So I am going to say that the card is bad. If the link and activity lights are not coming on, that is usually a sign of a hardware problem. Can you put the card from the working server in the problematic box?
 
Old 06-11-2010, 09:36 AM   #11
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Original Poster
Rep: Reputation: 15
I was lead to the same conclusion so I kept changing 3Com 3c905 cards - some B, some C, etc, but all based on 3c905 - even using a previous working one ... I tried it in three computers (DELL, and two ThinkCentre S51s). When I dig up some old 3com documentation it seems that these cards should use module 3c905x and not 3c59x ... the former isn't in Knoppix or Lenny or Ubuntu Lucid, the latter is. I ordered an Intel Pro 1000T to see if a new card will work. I may well just be using out-dated equipment ....
 
Old 06-25-2010, 12:50 PM   #12
whammack
LQ Newbie
 
Registered: Sep 2004
Distribution: Libranet 2.81
Posts: 26

Original Poster
Rep: Reputation: 15
Resolved

Resolved: Indeed the newer version of linux didn't like my older network cards; I ordered an Intel Pro 1000T (as recommended by the ThinkCentre manual) and it worked fine out of the box - green lights when active ethernet cables plugged in. Thanks to all for help.
 
Old 06-25-2010, 12:56 PM   #13
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by whammack View Post
Indeed the newer version of linux didn't like my older network cards...
There appears to be a solution: https://bugs.launchpad.net/ubuntu/+bug/73065
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with wireless network card... Crobat Slackware 1 01-14-2007 02:41 PM
Network card trouble dobrien4 Linux - Networking 1 09-27-2005 06:22 AM
Network Card trouble in Redhat Linux 9 linx-rookie Linux - Newbie 1 04-24-2005 03:36 PM
Trouble with ppp, Network card jgnasser Linux - Networking 1 01-16-2005 10:53 AM
Trouble getting Network card to work on a Sparc20 plisken Linux - Hardware 2 05-06-2003 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration