LinuxQuestions.org
Help answer threads with 0 replies.
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 12-27-2004, 05:43 PM   #1
Groundhog1248
Member
 
Registered: Nov 2004
Location: PA
Distribution: Redhat Federo 3.0
Posts: 32

Rep: Reputation: 15
Dual NIC's on 2 different networks...possible?


I have 2 NIC's installed and running on my Fedora 3.0 box. Eth0 is running off my cable modem service thru a router. I added the second NIC and it appears as eth1. After the second NIC was added I can no longer get out to the Internet unless I disable eth1. eth1 is connected to my other router that is on my DSL line. I only want eth1 to talk to my internal network not the DSL Internet connection. Is this possible? When both NIC's are activated I can reach each router's config page but Internet doesn't work. I'm sure the computer is confused as to which router to use as the Internet connection. My printer is attached to the DSL network and I want to connect to it in my Fedora box. Any suggestions?

Thanks
 
Old 12-27-2004, 08:07 PM   #2
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
First off make sure both NICs are not set to the same subnet. If eth0 is directly connected to the cable modem this should not be the case. Next make sure there is only one default gateway specified, it should be for eth0. Run "route" if there is a default entry for eth1 you should delete it with "route del default gw 'ip-of-eth1-gateway".
 
Old 12-28-2004, 12:00 PM   #3
Groundhog1248
Member
 
Registered: Nov 2004
Location: PA
Distribution: Redhat Federo 3.0
Posts: 32

Original Poster
Rep: Reputation: 15
Here is my routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.128 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

I changed the subnet masks so they are different. I can't ping the eth1 network.
 
Old 12-28-2004, 05:52 PM   #4
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
Your subnet masks do not need to be different, just the subnets(networks) themselves. If eth0 is 192.168.1.X/255.255.255.0 and eth1 is 192.168.2.X/255.255.255.0 that would be ok. For some reason you have an APIPA entry (You'll get an ip in the 169.254.X.X range, if your set up to obtain your ip from DHCP, but can't access the DHCP server). I don't know why you have this entry since you have a valid entry for eth1, but this shouldn't stop you from accessing your second network. You can delete this with "route del -net 169.254.0.0 netmask 255.255.0.0 dev eth1", it may make a difference, but I doubt it. Set the subnet masks back as they were, since you could access the web interface of both routers, your configuration should have been correct. Next restart all networking services, better yet reboot, and lets get the output of "ifconfig" and "cat /etc/resolv.conf".
 
Old 12-28-2004, 06:56 PM   #5
Groundhog1248
Member
 
Registered: Nov 2004
Location: PA
Distribution: Redhat Federo 3.0
Posts: 32

Original Poster
Rep: Reputation: 15
The only way I could excess both router web pages was if I had both gateways setup. I rebooted and removed the 164 entry in the route table. Still timing out when I try and access the eth1 network without a gateway entry.


This resolv.conf is the dns servers for my cable connection.
/etc/resolv.conf:
nameserver 64.78.119.1
nameserver 64.78.119.2
nameserver 64.78.119.2

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:11:2F:7B:82:4B
inet addr:192.168.1.2 Bcast:192.168.1.127 Mask:255.255.255.128
inet6 addr: fe80::211:2fff:fe7b:824b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:283 errors:0 dropped:0 overruns:0 frame:0
TX packets:321 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:141112 (137.8 KiB) TX bytes:31464 (30.7 KiB)
Interrupt:11 Base address:0x4000


eth1 Link encap:Ethernet HWaddr 00:50:04:7C:64:A5
inet addr:192.168.2.9 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::250:4ff:fe7c:64a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:618 (618.0 b)
Interrupt:10 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2183 errors:0 dropped:0 overruns:0 frame:0
TX packets:2183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2080730 (1.9 MiB) TX bytes:2080730 (1.9 MiB)

New route table:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.128 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
 
Old 12-29-2004, 12:24 PM   #6
Groundhog1248
Member
 
Registered: Nov 2004
Location: PA
Distribution: Redhat Federo 3.0
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for your help twsnnva. It was something as simple as my firewall. It was blocking the eth1 traffic until I configured it as a trusted host. Now I can ping all the eth1 machines and printing works.
 
Old 07-28-2009, 12:00 PM   #7
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Question Dual NICs, Dual ISP's and Dual Routers - How to...

How did you allow traffic through your firewall for ETH1, did you use the GUI or iptables? Could you please provide an example, thanks in!
 
  


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
FC3/W98 dual-booting - networks greenshade9 Linux - Networking 2 11-01-2005 12:01 PM
Dual NIC's ipforwarding? TheRealDeal Linux - Networking 2 09-26-2003 01:10 AM
2 NIC's plisken Linux - Networking 1 04-19-2003 03:32 PM
x1 server, x2 NIC's, x2 networks jcbotha Linux - Networking 2 03-12-2003 11:59 AM
Dual NIC's really slow hazza96 Linux - Networking 2 07-11-2001 02:39 AM

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

All times are GMT -5. The time now is 11:30 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