LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 network cards problem (https://www.linuxquestions.org/questions/linux-networking-3/2-network-cards-problem-430099/)

bigmoe 03-30-2006 02:19 PM

2 network cards problem
 
i have 2 network cards on my pc they are configured and everything but when i unplug the network cable and plug it again they appear as disconnected and nothing goes on?? when i first connect they werent any network passing through and now when everything is connected also no internet??!!! can someone tell me what the problem might be??
ps iam using Ubuntu

Thanks
BiGmOe

chrisortiz 03-30-2006 04:39 PM

as far as no internet you probably need an ip address.

open up a console window, then type "su root"
then
"ifconfig -a"

if the output shows they have no ip addresses try typing

"dhcpcd eth0" or which ever one is connected to the internet

btw what are you trying to do with 2 network cards?

bigmoe 03-31-2006 05:04 AM

the network cards are configured by ifconfig iam using static ips and they are provided from the internet provider. i have a wireless router connected to one of the network cards and i want to share the internet over a network that's it!! so can u tell me what the problem might be???

tertius 03-31-2006 06:17 AM

is it plugged into a router? what ip is the router and what's the ip's of your network cards?? meaby you have both the cards on the same range.. and what cable are you using,crossover or straight through,cable might b a prob

bigmoe 03-31-2006 07:41 AM

what if they are on the same range?? is there a problem with that?? the cables are regular rj45 network cables and on m win box hey were working fine?? no crossovers..
thanks for the help

tertius 04-03-2006 01:41 AM

I , sorry took so long to reply..

mmm,between two pc's or a pc and a router the cable must be a crossover..between a pc and a hub it is normally straight through. That does make a difference. Then yes it most definitely makes a difference if the network card is on the same range,then it won't work. obviously your card goin to the router must be on the same range,just make your other card a different range and make sure your default gw on your linux machine is the router and then it should work fine. what is your current ranges on your network cards on your linux machine? and your router ip..

chrisortiz 04-03-2006 02:04 PM

try echo 1 > /proc/sys/net/ipv4/ip_forward


this will enable routing.

just make your inside network 192.168.12.0 or something. that is what they call a private address and its just for small networks. 3rd octet doesn't matter it could be anything from 12, to 11, 0, to 255.


All times are GMT -5. The time now is 11:10 PM.