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.
Hello I've been hunting around forums trying to find a solution to this problem. I have a server running Ubuntu 8 connected to a cable modem, serving files and running a few services that make outbound connections. I have a second Cable modem connected to a Linksys WRT router running Tomato which acts as the gateway/router for my LAN.
I would like to get the server connected to the LAN without having it use the LANs gateway for Internet traffic. Rather only allow connections to LAN IPs so I can finally stop using ridiculous methods like memory sticks or going out through the Internet.
I've found a few guides on how to do this with multiple Internet connections on the same machines, but none with multiple gateways and multiple connections on physically different devices. I've tried simply connecting eth1(eth0 is modem) to the LAN and firing up samba. It worked initially and then stopped. Not sure why but could speculate.
Sorry if this is a trivial question, I'm still new to Linux and have a lot to learn. Thank you in advance for any help.
From what you've described you haven't got multiple gateways at all. Looking at those tags you've added, you don't want to bridge anything, you don't want to share anything... you have a normal network in the majority of ways, and don't want to do anything deviant where there are changes.
From the LAN, this server would just be another node on the LAN. you need no special measures to take in any way. just give it a lan conection on a nic, and off you go.
Last edited by acid_kewpie; 02-19-2009 at 01:07 PM.
I'm still not clear on what would stop the Ubuntu server from making requests through eth1 to the linksys router rather than the modem on it's eth0. It would have two gateways as it would have the cable modems gateway and the 192.168.0.1 gateway which is the router. Is there some kind of innate preference that would have it use the modem instead of the LANs gateway?
well would WOULD it route through an alternative router? How do you expect it to know that it even exists? if you don't explicitly tell it that 0.0.0.0/0 exists via two routes, it's not going to know two routes exist. DHCP *could* cloud the issue, but you should not be using DHCP on a server interface in the first place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.