2 network cards on linux to configure a router

2 network cards on linux to configure a router

Post by linux_123 » Thu, 15 Jan 2004 05:44:51


When I put my first network card on my linux box and connect my cable
modum directly to my linux box I can get to to the internet with no
problem

but the moment I put my second network card on my linux server (so I
can connect a switch to the second interface) I cannot get online line

Can someone help me out the second card seems to causing the first
network card
problems

I am running redhat linux 9.0

Thanks

Gary
 
 
 

2 network cards on linux to configure a router

Post by mcintos » Thu, 15 Jan 2004 06:02:57

In article < XXXX@XXXXX.COM >,


You really didn't give us much to go on here. Are the two cards the same
type? If so, Linux's idea of which one is eth0 may not match yours.
Run ping and watch the lights.

If the cards aren't the same type, are there two entries in /etc/modules.conf
and do they match your idea of which NIC is which?
If so, run ifconfig and check that both cards have addresses, and that they
are not on the same network (a common mistake).
See if you can you can ping your gateway. Make sure that the route to
the gateway uses the correct NIC.

This problem isn't a whole lot different from "My NIC doesn't work".
Google should be your friend.

 
 
 

2 network cards on linux to configure a router

Post by linux_123 » Fri, 16 Jan 2004 01:23:48

Hello ,

I have two Linksys networks cards (LNE100TX - EtherFast10/100 LAN
Card)
I went to the /etc/modules.conf file and I did see 2 entries for
my network cards eth0 tulip, eth1 tulip

I could ping both network cards on my linux server from my NT machine
I put everything on a flat network so at least I know all my network
cards are good
it is just puzzling me why I cannot get to the internet when I have
two network cards are on my linux server

Thanks for your previous help though I will keep checking google like
you said

cheers

----------------------------------------------------------------



>> In article<< XXXX@XXXXX.COM >>,
>>>>When I put my first network card on my linux box and connect my cable >>>>modum directly to my linux box I can get to to the internet with no >>>>problem >>>> >>>>but the moment I put my second network card on my linux server (so I >>>>can connect a switch to the second interface) I cannot get online line >>>> >>>>Can someone help me out the second card seems to causing the first >>>>network card problems >> >> You really didn't give us much to go on here. Are the two cards the same >> type? If so, Linux's idea of which one is eth0 may not match yours. >> Run ping and watch the lights. >> >> If the cards aren't the same type, are there two entries in /etc/modules.conf >> and do they match your idea of which NIC is which? >> If so, run ifconfig and check that both cards have addresses, and that they >> are not on the same network (a common mistake). >> See if you can you can ping your gateway. Make sure that the route to >> the gateway uses the correct NIC. >> >> This problem isn't a whole lot different from "My NIC doesn't work". >> Google should be your friend.
 
 
 

2 network cards on linux to configure a router

Post by Brad Oli » Fri, 16 Jan 2004 01:48:11


My first thought is that the gateway isn't set, or set right. Being
honest it could be any of a number of things. Can you provide the
output from the following commands and then maybe the problem will be
more obvious to somebody here...

ifconfig -a
route
cat /etc/sysconfig/network
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/network-scripts/ifcfg-eth1
cat /etc/resolv.conf

There are other areas (like netfilter) that could also cause your
problem, but this is a good first start at figuring this out.


Brad
--
"You cannot depend on your eyes when your imagination is out of focus."
Mark Twain

Bradley W. Olin http://www.yqcomputer.com/
 
 
 

2 network cards on linux to configure a router

Post by mcintos » Fri, 16 Jan 2004 02:09:56

[Please don't top post.]

I wrote

and Gary replied


So you are going to have to be careful to keep the two cards straight.
My .02 says this is contributing to your woes.
>>I could ping both network cards on my linux server from my NT machine >>I put everything on a flat network so at least I know all my network >>cards are good

Please post output from ifconfig etc. as suggested by another poster.