Link to home
Start Free TrialLog in
Avatar of darksinclair
darksinclair

asked on

Identical NICs, One Unknown to System

Greetings,

I recently installed a second NIC in my file server (Gentoo Linux 2.6.15-r1).  The first network card works fine and comes up in lspci accurately. (Ethernet controller: D-Link System Inc (Gigabit Ethernet Adapter (rev 11))  The second identical card (DGE-530T) comes up in lspci as D-Link System Inc Unknown Device 4b01 (rev 11).  

I'm pretty sure that this is just a resource conflict, but I don't know how to go about fixing it in Gentoo. (bit of a newbie.)   Any help will be appreciated.

Thanks,
Avatar of ppfoong
ppfoong


The 1st network card should known as eth0 and 2nd known as eth1.

Check if it is recognised by Linux with this command:

ifconfig -a

If you can see both eth0 and eth1 listed, then they are both detected. You just need to configure the 2nd network card for IP address, etc.

To configure, use this command in Gentoo:

net-setup eth1

Avatar of Arty K
Create another alias with the same value as eth0 in /etc/modules.conf:

alias eth0 ...
alias eth1 ...

reboot, then look for resource conflict (if any):
dmesg
Avatar of darksinclair

ASKER

Greets,

There is no eth1.  I would love to be able to do net-setup on eth1, however the device is not there.  It doesn't recognize what the card is (even though it recognizes what the other card is.)

As well, this is not a problem with the card.  If I take out the first card, then the second card will show up and become eth0.  it's fine detecting it.

It's a problem having two of them, I'm sure it's a resource conflict, however any other suggestions I am willing to try.

So to answer your question, ifconfig -a does not show eth1.  only eth0 and lo.

Regards,
Nopius, i did read that somewhere and tried myself, however on reboot it deleted it from modules.conf.

Do u know what exact commands I would give it?  I think the ones I used were specific to the NE2000 driver that I was following from an online documentation,

Regard,s
If you have Linux kernel sources you may find all parameters for your driver module in

Documentation/networking/dl2k.txt

below kernel sources directory

It's from there:
'4. cp dl2k.ko /lib/modules/`uname -r`/kernel/drivers/net
5. Add the following line to /etc/modprobe.conf:
        alias eth0 dl2k
6. Run "netconfig" or "netconf" to create configuration script ifcfg-eth0
   located at /etc/sysconfig/network-scripts or create it manually.
   [see - Configuration Script Sample]
7. Driver will automatically load and configure at next boot time.'


Here is a list of NICs supported by this driver (also from that document):

D-Link DGE-550T Gigabit Ethernet Adapter.
D-Link DGE-550SX Gigabit Ethernet Adapter.
D-Link DL2000-based Gigabit Ethernet Adapter.

Also there are examples for 2 cards:
===============================================================
   example: insmod dl2k.o media=100mbps_hd
   or       insmod dl2k.o media=3
   or       insmod dl2k.o media=3,2     ; for 2 cards
  ===============================================================

  Please reference the list of the command line parameters supported by
  the Linux device driver below.

  The insmod command only loads the driver and gives it a name of the form
  eth0, eth1, etc. To bring the NIC into an operational state,
  it is necessary to issue the following command:

  ifconfig eth0 up

  Finally, to bind the driver to the active protocol (e.g., TCP/IP with
  Linux), enter the following command:

  ifup eth0




oops, for 2.6.x kernels, edit /etc/modprobe.conf, not /etc/modules.conf
...

  2. Locate the boot module configuration file, most commonly modprobe.conf
     or modules.conf (for 2.4) in the /etc directory. Add the following lines:

     alias ethx dl2k
     options dl2k <optional parameters>

     where ethx will be eth0 if the NIC is the only ethernet adapter, eth1 if
     one other ethernet adapter is installed, etc.
If the card exactly the same and you have correct driver.
Try this:
 ifconfig eth1 up
after adding 'alias eth1'
and then look for ifconfig -a
I once got a 2nd card working by changing the pci slot.  I doubt if this would work on a newer mobo which should handle resource conflicts more gracefully, but it's worth trying.
ASKER CERTIFIED SOLUTION
Avatar of Dragon_Krome
Dragon_Krome

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks so much Dragon_Krome,

I didn't think that they would be recognized different and was trying to use the drivers from the first card (which is the exact same make and model but apparently a different firmware -- even though revision number is the same...).  After reviewing your list, they are identified differently and the downloaded drivers seem to work.

Thanks for the help all,

Regards,
Glad I could be of assistance.