LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-04-2004, 05:49 PM   #1
cptflam16
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
2 network cards, one interrupt the other


I'm using RH8.0, have recently installed a second network card to my desktop. The network works great except that when the card connected to my local network is turned on i can't make internet work on the server, it's like the first network card gets screwed up.
eth0:192.168.0.100->internet
eth1:192.168.1.1->gateway to local network
Do you have any idea?

Thanks
 
Old 06-04-2004, 07:16 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You probably defined a default route in the setup file for the second NIC, and if you did, that's wrong. You can only have one default route, and it should be pointing to the first NIC (i.e. the one connected to the Internet). The value of the default route, or default gateway should be the IP that your ISP gave you for their gateway.

Also, make sure that the subnet mask for each NIC is 255.255.255.0 (i.e. /24), because if you define the netmask too big it will overlap the other IP on your box.
 
Old 06-04-2004, 10:20 PM   #3
cptflam16
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
2 network cards, one interrupt the other

well i actually did that but it doesn't solve anything. So you're saying that both NIC should have the save default gateway? The thing is that if i boot the first NIC i get internet, then i boot the second NIC the network works but the internet doesn't. To get it back i have to deactivate both cards and reactivate the first one. Does that make sense to you?
 
Old 06-04-2004, 10:27 PM   #4
cptflam16
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
interesting now out of nowhere it works... Now how do i get internet access from within the local network? I can access the server from a client.
 
Old 06-04-2004, 10:53 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
It's exactly like I told you: You may only have one default gateway, and it must point to the Internet. Don't set a default gateway for the second NIC at all. I don't know if you're using some graphical configuration tool, or directly writing a config file, but you need to not specify a gateway for the 2nd NIC.

Allowing LAN clients to access the Internet through this box is an entirely different matter. You need to turn on IP forwarding and setup a firewall with NAT. There are plenty of descriptions on this board, the Security forum, and many tutorials that are indexed by Google that can tell you how to do this. www.netfilter.org would be a good first step.
 
  


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
Network interrupt strangehart Linux - Networking 2 01-30-2005 01:18 AM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
How to find Packet driver interrupt for ethernet cards palanisaravanan Linux - Networking 1 12-29-2003 01:18 PM
How to find Packet driver interrupt for ethernet cards palanisaravanan Linux - Hardware 0 12-29-2003 08:25 AM
Network card interrupt line blocked ?? chinwah Linux - Networking 0 04-17-2002 01:19 AM

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

All times are GMT -5. The time now is 09:06 AM.

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