Click to See Complete Forum and Search --> : New Network Card
jrbush82
09-21-2001, 03:08 PM
Hello all, I've installed a second Linksys Network card into my system. When I type ifconfig, there is only the original eth0 card that I had to begin with. How do I go about configuring and installing the software for the new network card in Linux?
Thanks,
Jason Bush
error27
09-21-2001, 05:16 PM
The software is already installed... "/ifconfig eth1 up" All you need to do is configure.
How do you want it configured?
jrbush82
09-21-2001, 10:43 PM
Well... as you can see:
root@jason:/home/jason# ifconfig eth1 up
eth1: unknown interface: No such device
It didn't work. Any other ideas?
Fire up linuxconf, choose Config->Networking->Hostname and IP Network Devices->Adaptor 2. In the Net Device field, select eth1. Choose the correct module from the Kernel Module drop-down list. Enter the apppropriate information (host/domain name,IP, netmask, etc.) in the remaining fields and enable the device. If you're using DHCP, most of this will be automatically obtained, of course. Since you already have one card working, your DNS and Gateway info should already be in place, yes?
If you still get the error, here are some thoughts:
as root:
- Type dmesg|less to review your bootup messages, and use the page up/down keys to navigate through the file. Look for lines beginning with "eth0" and "eth1" and note any relavent messages/errors.
- Type cat /proc/pci. Are both Ethernet controllers identified, or just the controller on eth0?
- Type cat /proc/interrupts. Do you see both eth0 and eth1? IRQs can usually be shared, but note any conflicts just to be on the safe side.
- Type lsmod to list the currently loaded modules. Is your NIC's module listed?
- Does /etc/modules.conf have an "alias" line for both NICs?
jrbush82
09-24-2001, 11:20 AM
I do not have linuxconf. I am running Slackware 8. Should I download and install that? The only thing that found the card was /proc/pci and when I was in KDE I went to a device manager type deal, and it said that it was an ethernet card, but there was no drivers or anything for it.
I haven't used Slack yet, so I don't know what it uses for a configuration utility. If it doesn't have linuxconf, I'm sure it has something similar. You said you already have a net card; how did you set that one up? It is working correctly, right?
Did you try "lsmod"? If not, do so now, and post the output. Check your /etc/modules.conf file (/etc/conf.modules in some distros). There should be an alias for both devices, even if the cards both use the same module:alias eth0 name_of_module_used_by_eth0
alias eth1 name_of_module_used_by_eth1
jrbush82
09-24-2001, 10:33 PM
Here is the result of lsmod:
root@jason:/home/jason# lsmod
Module Size Used by
ipt_MASQUERADE 1392 1
iptable_filter 2016 0 (unused)
ip_nat_ftp 3104 0 (unused)
iptable_nat 14160 1 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack_ftp 3440 0 (unused)
ip_conntrack 13488 2 [ipt_MASQUERADE ip_nat_ftp iptable_nat ip_conntrack_ftp]
ip_tables 10816 5 [ipt_MASQUERADE iptable_filter iptable_nat]
de4x5 39440 1 *** ETH0
emu10k1 46080 0
soundcore 3664 4 [emu10k1]
NVdriver 659072 15
mousedev 3968 1
usbmouse 2016 0 (unused)
input 3200 0 [mousedev usbmouse]
usb-ohci 18128 0 (unused)
usbcore 47376 0 [usbmouse usb-ohci]
ppp_deflate 39040 0 (unused)
ppp_async 6608 0 (unused)
ppp_generic 16656 0 [ppp_deflate ppp_async]
slip 7744 0 (unused)
lp 5936 0 (unused)
parport_pc 19152 1
parport 23040 1 [lp parport_pc]
jrbush82
09-24-2001, 10:35 PM
The other card was in during installation, and it was configured perfectly and working perfectly the first time.
bdg1983
09-24-2001, 10:42 PM
Do you know what module the Linksys uses and do you have that module on your system? If you do, then try 'modprobe module_name'.
If it loads, then next would be 'ifconfig eth1 up' as the others suggested.
de4x5 39440 1 *** ETH0O.K., lsmod is showing that the de4x5 module is loaded, and being used by eth0 (although I'm not sure about those three asterisks). No mention of eth1 though, so:
Do as mdwatts suggests. If that doesn't work, please give the exact model of both NICs, and what modules you believe they should be using. Also, give us the result of my previous suggestions:
Originally posted by DMR:
<STRONG> Type dmesg|less to review your bootup messages, and use the page up/down keys to navigate through the file. Look for lines beginning with "eth0" and "eth1" and note any relavent messages/errors.</STRONG>Anything there?
Originally posted by DMR:
<STRONG>Does /etc/modules.conf have an "alias" line for both NICs?</STRONG>As I said before, it should have an entry for both cards, even if they both use the same module:
alias eth0 name_of_module_used_by_eth0
alias eth1 name_of_module_used_by_eth1Do you have those entries?
Yuo might also have a resource conflict with the second card. Turn off Plug-N-Play OS support in your BIOS if you haven't already.