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 12-05-2004, 08:25 AM   #1
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
Two gateway setup


I have 3 NICs, one that connects to my internal network, another two that connect through different ISPs to the internet. The NICs connected to the net are both the same, as in RealTek 8139(A).

One of the connections if extremely stable, max throughput is 30K/s inside my country and 15-30 outside. The other is very fast inside my country (up to 5 megs/sec on ftps), but can get a real pain in the a55 on some outside connections (2-12 k/sec) while on some other it can go as high as 200-300k.

My ideea was to somehow route the packages through the convenient gateway, as my LAN connection requires it. What I want to know, before the "howt o?" is what do i need in terms of software (kernel patches/a.s.o)?
 
Old 12-06-2004, 01:28 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You just need to use the "route add" command. See:
man route
 
Old 12-06-2004, 02:43 PM   #3
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Original Poster
Rep: Reputation: 30
Hmmh... I don't think it's that easy as adding a "simple" route.. I read something about packet marking or stuff like this... in which case... again... is here any software I'd require?
 
Old 12-06-2004, 02:54 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
On what basis do you want to route the packets if it is not by IP/subnet?
 
Old 12-07-2004, 01:32 AM   #5
stunted
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
<fx> Hijacks thread </fx>
I have a machine with 2 network connections (eth1, 192.168.1.251, and eht0, 10.0.0.2) the default gateway is 192.168.1.254, how would I add a route for specific services, for instance all traffic from my FTP and web servers go throuth eth0 (the internet gateway on that network is 10.0.0.1) but everything else go out through eth1

Thanks, my flat mate moved out so I have 2 ADSL connections for a while, his is a bit slow so I'm using it for big downloads but want the same computer to be FTP and web servers on my connection.
 
  


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
Help me setup this gateway/network ziggy25 Linux - Networking 9 02-24-2008 01:41 PM
NAT/Gateway setup cflyguy Linux - Networking 3 08-11-2005 11:47 PM
SMS Gateway Setup?!?! rohroh Linux - Software 9 03-07-2005 06:49 AM
Linux RH 7.2 Gateway Setup goatr Linux - General 4 01-23-2002 12:17 PM
Gateway setup help! frost33 Linux - Networking 4 05-04-2001 07:55 PM

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

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