LinuxQuestions.org
Review your favorite Linux distribution.
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 02-19-2009, 12:56 PM   #1
rovon
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Two ISP Connections, Two Routers, One LAN


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.

Regards,
Rovon
 
Old 02-19-2009, 01:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-19-2009, 02:44 PM   #3
rovon
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Not clear.

Okay well I'll try that again tonight.

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?
 
Old 02-19-2009, 02:46 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-19-2009, 02:53 PM   #5
rovon
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Give it a shot and get back to you.

Okay I think I understand. I'll give it a shot tonight and see how it works. I'll post tonight/tomorrow on how it went.
 
  


Reply

Tags
bridge, connection, gateways, lan, multiple, router, sharing



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
how do I load balance or failover two linux routers to the same ISP w/ multi IPs Micah Linux - Networking 4 02-15-2009 05:42 PM
how to limit ssh connections to my isp only gruntwerk Linux - Networking 8 12-13-2006 02:05 AM
How to get dhcpd.conf to support multiple ISP routers? spadesmaster Linux - Networking 5 09-22-2005 01:18 PM
2 routers WAN, LAN could you please tell me... microsmart Linux - Networking 5 08-06-2005 01:17 PM
how many routers connections... cranium2004 Linux - Networking 0 11-18-2004 06:50 AM

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

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