LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2005, 07:17 PM   #1
troycus
Member
 
Registered: Sep 2003
Posts: 84

Rep: Reputation: 15
2 nic card istallation help!


I just installed linux 9.0 with 2 nic cards on an IBM P3 with 256 ram. I'm trying to use this computer as the main internet connection and file server for all of my computers on my network. The 2 nic cards were sucessefully installed. eth0 is the connection to the internet. That works fine. The problem I'm running into is that, when I activate eth2, my internet connection on eth0, stop working. When I deactivate eth2, my internet connection works again. Is there a step I miss when I installed the 2 nic cards?
 
Old 01-22-2005, 07:38 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
eth2.... ? so you have 3 inetwork cards ?

the order is eth0 eth1 eth2.

what are you using to activate / deactivate cards ?

attepmt to activate both cards and post he output from "dmesg | grep eth" and "/sbin/ifconfig"

also, "uname -r" the latest version of linux is 2.6.10, are you sure you dont mean suSE9 / redhat9 / Mandrake9 ?
 
Old 01-22-2005, 08:25 PM   #3
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
I'm sorry. I'm using Redhat 9.0 also, I ment to say eth1......(eth0 and eth1). I'm using the network cofiguration program to activate and deactive the nic cards.
 
Old 01-22-2005, 10:09 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Ok...so what about

post he output from "dmesg | grep eth" and "/sbin/ifconfig"
 
Old 01-23-2005, 09:25 AM   #5
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
when I try those commands, it shows that both cards are installed and running.
 
Old 01-23-2005, 11:07 AM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
what makes you think they are not running fine then ???
 
Old 01-23-2005, 01:05 PM   #7
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
When I activate the first nic (eth0) my internet connection works fine. When I activate the second nic (eth1), my internet connection stop working. I can ping both cards when they both are active but, my internet connection doesn't work. When I deactivate the second nic (eth1). My internet connection works fine. Refer to the original post.
 
Old 01-23-2005, 02:24 PM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Smells like a routing error to me.
activate both cards, then run route.
whats the output of the command "route" ?

the default gateway should mention the correct eth device.

descripbe your network structure... eth0 is your external insternet connection... Via what ? Hub / Switch / Router / Direct internet connection ????

whats eth1 connected to ???
does the network on eth1 have a DHCP server ?
are you activating the NIC's manually, or VIA DHCP, if manually, what ip address / netmask / gateways are you using ???

All i can guess is happening here, is a DHCP server on eth1 is setting your default gatewateway to an address on eth1. there can only be 1 default gateway, so after eth1 is activated, all attempts to connect to the outside worls are router through the wrong card.

i would be tempted to activate eth1 manually with ifconfig.
 
Old 01-24-2005, 04:28 PM   #9
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
When I type the "route" command, it shows me the kernel ip routing table which reads:

Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.xxx.xxx * 255..... U 0 0 0 eth0
192.168.0.1 * 255...... U 0 0 0 eth1
etc...........................


I have a small network at home that I want to runs off the same DSL DHCP internet connection. I have one compter with 2 nic cards installed. One nic cards is (eth0) has the internet connection. Eth1 is routed to a ethernet hub. All other computer are connected to the hub. As I stated earlier, I can get on the internet from eth0 but when I activate eth1 for some strange reason, I lose the connection.
 
Old 01-24-2005, 04:43 PM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What brand are the nics?
Are they same? Linux can sometimes have fits if they are the same model.
I assume you have not enable any iptables stuff to forward network from eth0 to eth1 yet? If so what are your iptables config.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-24-2005, 04:58 PM   #11
troycus
Member
 
Registered: Sep 2003
Posts: 84

Original Poster
Rep: Reputation: 15
I have'nt set my forwarding tables yet because I want to make sure my internet connection work first.
 
Old 01-24-2005, 08:48 PM   #12
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
so.. the routing table.....
is the default gateway present and correct ????

i asked for the information because i thought it mifght be where the problem was...
just posting "etc etc" dont help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
trigger istallation problem landroni Linux - Games 0 04-29-2005 10:03 AM
cdrom not seen during istallation pirozzi Debian 3 03-22-2005 09:23 AM
X graphic problem during istallation victor_eisikovi Fedora - Installation 1 12-14-2004 04:35 AM
Wine istallation jocast Linux - Software 4 05-26-2004 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration