LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-09-2012, 01:55 PM   #1
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
route from internal network to external ip


Hello,

In a home situation I have 3 local subnets that are natted(prerouted?) through a server on a fiber network(100mbps) the lan is a gigabit network and now I've noticed that backups to the server(external IP due to use of laptops) go at a max rate of 100mbps.
So I'd like to add a route to my external IP on the server so it'll know not to use the limitations of my external interface.
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
88.159.x.0    *               255.255.254.0   U     0      0        0 eth1
default         x-x-ftth.on 0.0.0.0         UG    0      0        0 eth1
How and what do I add?
 
Old 12-10-2012, 02:47 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Do you means you want to setup routing for multiple uplinks/providers?
 
Old 12-11-2012, 01:46 AM   #3
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Original Poster
Rep: Reputation: 25
no all I'd like to do is add a route so nodes on my local network will go straight to localhost when they access the external IP from the lan so they are not limited by the "slow" uplink to the gateway on the 88.159.x.x external network.
 
Old 12-11-2012, 12:31 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
A simple way, each client add a route to handle 88.159.x.x traffic and gateway is your server. And in your server, a route send back 88.159.x.x traffic to your LAN.
 
Old 12-12-2012, 04:33 AM   #5
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Original Poster
Rep: Reputation: 25
problem is that I can't add static routes to all the nodes in the lan. Just in the gateway... but 88.159.x.x is an actual ip not a subnet. It's just the external IP of the gateway server
 
Old 12-12-2012, 02:29 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Set following route's device to loopback interface, eth1 should be lo.
88.159.x.0 * 255.255.254.0 U 0 0 0 eth1
 
  


Reply

Tags
route


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
able to connect to internal network but not external VGM Linux - Newbie 2 10-14-2009 10:03 PM
Internal network connecting to external IP address kamafeu Linux - Networking 2 01-21-2007 01:23 PM
Detecting the external IP address of an internal network: JohnLocke Linux - Newbie 17 07-22-2004 04:08 PM
SuSe 7.0 not communicating with Network (internal or external) jmnovak Linux - Networking 1 02-27-2002 11:52 AM
accessing box from internal network but not from external JereBear Linux - Networking 12 05-12-2001 01:12 AM

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

All times are GMT -5. The time now is 09:13 PM.

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