Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with adding 2nd NIC card 1

Status
Not open for further replies.

tech4rce

Technical User
Aug 27, 2003
49
CA
Hi there people, I need your help (as usual). First I'm new to Linux (so that should scare you); I'm running Red Hat 9 as a server/router/firewall.

I add the first NIC (eth0)DHCP to DSL modem, check to make sure that I do get on the Internet, everything is fine (working no problem). Oh the network setting is "NO FIREWALL" just so I can check that it's working.

I then install the Internal NIC (eth1)(192.168.X.X); now come the strange part, I don't have any connection to the Internet, NONE (nothing!).

So my question is "what is going on? and How do I fix this?"

I'm trying to set-up the "Iptables" but seeing that I don't have any connection I'm stuck before I even get started.

Thanks to all who reply.

 
what are both nics set to? Are they both on the same subnet, are you routing properly? I assume you are planning on using this as a router, one NIC to modem, one NIC to hub or switch and across the internal network. Make sure each card is on a seperate subnet like: one is assigned 192.168.0.1 and the other 192.168.1.1. Linux should apply the correct routing. Then make each NIC can ping each other. If that works then try getting iptables working.

John D. Saucier
jsauce@magicguild.com
Certified Technician
Network Administrator
 
eth0 set up to DHCP (from ISP)
eth1 set up (Private address 192.168.X.X)
they are both on different networks.

The problem is that when I install the second NIC, I can not connect to the Internet.

I'm using KDE gui, when I check on NETWORK, eth0 is inactive, eth1 is active. I try to activate etho but it just does not connect to ISP (it used to before I installed the 2nd NIC). I can Ping eth1 (127.0.0.1 and 192.168.X.X)

Also my system is "VERY" slow now. Any body know what is going on??

 
You are having a problem with the order that the NICs are recognized by the PCI susbsystem. Your original NIC0 and its module are being pushed to eth1 when you add NIC1. I would also bet that you are installing different models of NIC, which is why the driver didn't pick up the eth0 NIC.

Try flip-flopping the NICs pysically. Then you'll need to insmod/modprobe for the proper driver for the second NIC.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Yeah I've had this problem. You should also try manually setting the PCI irq settings in the bios on each card. Linux sometimes has a problem like this when adding a second card. It doesn't happen to everyone but I've had this problem. You may get an error about resource in use when you try to setup the previous card after the second is now working. What I had to do is recompile the kernel with one as a module and one built in. Then on boot it would detect the one that was built in and I'd have to insmod the second one to get it working. I basically have it doing this at every boot, and its a mickey mouse job but it works. Sometimes you just have to play with something like this until you get it working.

John D. Saucier
jsauce@magicguild.com
Certified Technician
Network Administrator
 
Thanks "thedaver & jsauce" for the info (I've been working on this problem all evening, but still not working.

I'm using SMC NICs, and I just found out that Linux is using the same driver for each. Different model of NICs though.

So can anybody tell me HOW to "insmod" (I am a newbie).

The wierd part is that I even tried a 3Com NIc and a SMC and I still had the same results.

Right now there is two SMC (different models) NICs.

Thanks for your Info and for taking the time to answer.

 
well it should be as simple as insmod "module" where "module" is the module you want installed. Remove the "". Linux should then install it, but you will probably need to do it at every boot so put it in your boot.local. Might be just trying to make sure you get the right module installed too. Also I wouldn't recommend using the same cards in fact I'd recommend the exact opposite, I myself use two different 3com cards and it works well for me but I have to use the mickey mouse trick to work them. Linux is a pain when it comes to getting the multiple nics installed sometimes especially with the 2.4 kernels.

John D. Saucier
jsauce@magicguild.com
Certified Technician
Network Administrator
 
Thanks jsauce, I will try this,(after work).
 
Multiple NICs of the same make and model are fine if you take note of the MAC addresses and bind them to the interface that you want. This can be done in your:

/etc/sysconfig/network-scripts/ifcfg-eth[x]

where [x] is the interface that you would like to configure, adding a line

HWADDR=xx:xx:xx:xx:xx:xx

where xx:xx:xx:xx:xx:xx is the MAC address of your NIC. This will ensure that a particular interface will always be bound to a particular NIC.
 
This only works for versions that use ifcfg-eth. Where I use suse I don't have that option.

John D. Saucier
jsauce@magicguild.com
Certified Technician
Network Administrator
 
Thanks to everybody that replied, but I have to put this project of mine on hold, I have a hard drive issue at this point. Will have to get a new HD. Dam!

But thanks to everybody and I will try the tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top