View previous topic :: View next topic |
Author |
Message |
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Wed Jul 03, 2002 9:32 pm Post subject: 2 NICs; only one will load |
|
|
I've got 2 3com 3c595's in my system. eth0 works fine, but I can't get eth1 to come up. I have support for them compiled into the kernel. How can I get eth1 to come up. It's static (192.168.1.2/24).
I'm REALLY new to Gentoo, and really new to Linux. I've been using Debian on my server for about a year, and I was using RedHat 7.3 on my desktop for the last month, but I moved to Gentoo 1.3a last night. I'm waiting on KDE to compile as we speak. But anyway, I just don't know what to do.
Thanks
-ee99ee2 |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Jul 03, 2002 9:35 pm Post subject: |
|
|
How do you have eth1 configured? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Wed Jul 03, 2002 10:15 pm Post subject: |
|
|
I don't. I was just trying to do ifconfig eth1 up to see if would even rechonize it. Where do I configure it at? I configured eth0 for DHCP like it said to do in the install documentation.
***edit***
I went back into /etc/conf.d/net and configured eth1 for the static interface that it is. eth0 is DHCP, and is configured right.
I also typed 'ifconfig eth1 up' and got this:
eth1: unknown interface: No suck device |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Wed Jul 03, 2002 10:18 pm Post subject: |
|
|
ee99ee2 wrote: | I don't. I was just trying to do ifconfig eth1 up to see if would even rechonize it. Where do I configure it at? I configured eth0 for DHCP like it said to do in the install documentation. |
A few lines further in the install docs tell you how to config a second nic.
If that doesn't work, then maybe you've got a hardware problem. Are both nics recognized during boot? |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Wed Jul 03, 2002 10:21 pm Post subject: |
|
|
Yea, I did that, but it still doesn't work. I did it just like it said in the install doc for two nics. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Jul 03, 2002 10:26 pm Post subject: |
|
|
should give you an idea of what the kernel is thinking. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Wed Jul 03, 2002 10:40 pm Post subject: |
|
|
I typed dmesg | grep eth, but nothing came back. Just went to the next line. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Jul 03, 2002 11:07 pm Post subject: |
|
|
ee99ee2 wrote: | I typed dmesg | grep eth, but nothing came back. Just went to the next line. |
Hmm. I guess the vortex driver doesn't preface its kernel messages with the interface name. You should be able to see output from the 3c59x driver somewhere in your kernel log telling you which cards it can see. Could you have an IRQ conflict? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Wed Jul 03, 2002 11:21 pm Post subject: |
|
|
Nope. Not IRQ. One card is IRQ 10 and the other is 11. There is nothing else on either one of those IRQs. It worked when I was in RedHat, and it was compiled into the kernel then too.
-ee99ee2 |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Thu Jul 04, 2002 4:09 am Post subject: |
|
|
This is killing me. I've gotta get this working. I can only access the interenet now, and not my internal network.
I just wanted to make sure that I made it clear that support for it is compiled into the kernel, and not loaded as a module.
-ee99ee2 |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Thu Jul 04, 2002 4:12 am Post subject: |
|
|
Code: | # cd /etc/init.d
cp net.eth0 net.eth1
./net.eth1 start
rc-update add net.eth1 default |
_________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Thu Jul 04, 2002 4:56 am Post subject: |
|
|
I did that. And when I go to start it, I get this:
Code: | /sbin/runscript.sh: 2:: command not found
* Bringing eth1 up...
SIOCSIFADDR: No such device
eth1: unknown interface: No such device
SIOCSIFADDR: No such device
eth1: unknown interface: No such device
SIOCSIFADDR: No such device [ ok ]
|
|
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Jul 04, 2002 5:15 am Post subject: |
|
|
It sure looks like your kernel can only see the card assigned to eth0. Have you had any luck finding the place in your kernel boot messages containing the output from the 3c59x driver? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Thu Jul 04, 2002 5:49 am Post subject: |
|
|
I foudn this really weird, but the module 3c59x doesn't exist. I tried to manually load it just to see if it might work, and it said the module couldn't be found. I looked in the place where all the modules are, and it's not there. In fact, there are alot of modules missing. Maybe I was looking in the wrong place though.
Besides, why load it as a module when it's compiled into the kernel?
-ee99ee2 |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Jul 04, 2002 6:02 am Post subject: |
|
|
You won't find it as a module if it's compiled into the kernel. Since one of your cards is being recognized, then the driver is being correctly loaded. I don't think improper module loading is affecting you. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Thu Jul 04, 2002 6:09 am Post subject: |
|
|
Well, if it is not a module, you'll need to append the following to the kernel line in grub's menu.lst:
Code: | ether=IRQ,IOADDR,eth0 ether=IRQ,IOADDR,eth1 |
You can find the IRQ and IOADDR for both cards with cat /proc/pci. _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Thu Jul 04, 2002 6:28 am Post subject: |
|
|
Well I feel like an iodit now. I just realized that I switched out the NIC a long time ago to a Linksys LNE100TX (tulip). BEFORE I did that, I had anohter 3c595 in there. I'm sorry for wasteing your alls time. I'm going to replace that NIC with a 3c595 next time I reboot. I do appologize for wasteing anyones time.
P.S. - Thanks for the /proc/pci thing; that will come in VERY handy
-ee99ee2 |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Jul 04, 2002 6:35 am Post subject: |
|
|
Glad you figured it out. For a different front-end to the information in /proc/pci, you can also try emerging sys-apps/pciutils and check out the lspci command. In its more verbose modes it tells you even more than a raw cat of /proc/pci. Also included in that package is pcimodules, a program that finds appropriate driver modules for attached hardware. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
ee99ee2 Guru
Joined: 18 Jun 2002 Posts: 307 Location: Murfreesboro, TN, USA
|
Posted: Thu Jul 04, 2002 6:38 am Post subject: |
|
|
Wow that sound awsome. I'll defintly check that out after I get the rest of my system setup. hehe. Still compileing X and KDE3.
-ee99ee2 |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Thu Jul 04, 2002 7:00 am Post subject: |
|
|
Ok, I also learned a little bit with all this...
Now, just for the records, let me tell you how I found the info I posted here. I want to do this in the hope that it will help others in the future...
My thougths:
What is the problem?
Two network cards, both 3c595, only one works.
First resource: Google.
Search for: linux two 3c595
Check results.
First link seems to contain helpful info: "If any two Ethernet cards use the same driver..."
Follow it.
It's a Red Hat document: "Red Hat Linux 7.2: The Official Red Hat Linux Reference Guide", Appendix A.
Locate that portion of text inside the document.
It's near the end, in a section called "Using Multiple Ethernet Cards".
Hit!!
It mentions another RH doc, the "Official Red Hat Linux Customization Guide", and provides a link to the "Linux Ethernet-HOWTO".
Follow both.
In the top of this doc (Ref Guide), there's a link to "Red Hat Linux Manuals". The Cust Guide should be there.
Follow link.
It's there. Follow again.
Chapter 24 contains info about aliases.
Now the Ethernet Howto.
Chapter 9 contains info about boot parameters.
Needs IRQ and IO address.
Where to find them?
lspci
Not installed.
Must be somewhere under /proc
ls /proc
There's a "pci" there.
cat /proc/pci
Hit!!
And that was it...
I'm glad you solved it! _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
|