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 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?
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".
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".
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.