Second network card trouble in Debian

Pakman117

Senior member
Jan 20, 2001
303
2
81
I have two network cards, a Linksys LNE100TX and a Realtek 8139,
both are detected upon starting. The Linksys is eth0 and the
Realtek, eth1. The Linksys has IRQ 10 and the Realtek IRQ 11.
There are no errors on "dmesg". However, when I type in ifconfig, I
can only see the ethernet card connected to my cable modem. If I
make that card eth1, all I see is eth1 and lo. If I make it eth0, all I
see is eth0 and lo. I want to be able to see eth0 AND eth1 along
with lo. How can I do this? I am running kernel 2.2.20 and I did not
install any driver modules, the cards are automatically detected
(although I did try to install driver modules to no avail). Does
anyone have any ideas about how I can get eth0 and eth1 to show
up under ifconfig at the same time? Thanks.
 

Spyro

Diamond Member
Dec 4, 2001
3,366
0
0
What distro are you using? I'm thinking that the network cards are not really "configured" at startup (i.e. the one that doesn't show up needs to assigned an ip adress and activated).
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Is the card set up in /etc/network/interfaces?

They're both 8139too cards AFAIK, which should be in the default kernel. Then again 2.2 is old, definitely wouldn't hurt to upgrade to a 2.4.
 

Pakman117

Senior member
Jan 20, 2001
303
2
81
I'm using Debian, and the card was not setup in /etc/network/interfaces. I did this manually, but ifconfig still does not show the card. The Linksys card is a tulip and the Realtek is 8139too. Even if I install those modules during installation of the operating system, the system just thinks I have 4 ethernet cards, and then shows 1. I don't get it.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
ifconfig doesn't show your ethernet cards, it shows configured network interfaces. You need to set up a static interface for the non-dhcp card in /etc/network/interfaces. man interfaces for info.

Or just to test you can do "ifconfig ethX inet 192.168.xxx.xxx netmask 0xffffff00" and see if it shows up then. ifdown ethX to bring it back down. Figure out what you need to put in your interfaces file, then do an "/etc/init.d/networking restart" to reconfigure things. Then do an ifconfig -a to see if it's there. It *should* be.