Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.