multiple gateways

multiple gateways

Post by mixo » Tue, 27 Aug 2002 17:36:19

How  can set a gateway to a specific route? For example,
all traffic going to network should go through I want to avoid doing a setting as I
already have one to leads to another network. In other words, how can
I get:

Kernel IP routing table
Destination     Gateway    Genmask         Flags Metric Ref    Use Iface UG     0      0       0 eth0
anothernetwork   *           somemask        U     0      0       0 eth0
default       somegwip        UG     0      0       0 eth0


multiple gateways

Post by mixo » Tue, 27 Aug 2002 17:42:24

Goot it:
route add -net netmask gw


1. Multiple DSL providers w/multiple gateway question

I have been working on a problem with routing multiple subnets through
our single Linux box w/2.4 kernel.  I have an SDSL that provides 64 IP
addresses and an ADSL line that provides 5.

We are currently using NAT translation on a Linux box to route 4 of
the 5 IP's from the ADSL line to and from the Internet.  The same
Linux box also handles the firewall portion of the DMZ and the
internal workstations.  Here is a sample config.

eth0 is ADSL line with 5 IP's assigned.
eth1 is connected to the router that connected the SDSL line to the 64
eth2 is an internal network
eth3 is an internal network
eth4 is the DMZ which maps 4 of the 5 ADSL connections.
eth5 is our second DMZ which we would like to map the the the eth1 IP

Our goal is to use one Linux box to maintain both DSL lines at the
same time and provide firewall servers between all of the ethx's
(firewalling part is done).  The secondary objective is to provide
failover internet connections for the internal web surfers (primary
routing being eth0 secondary being eth1).

The problem is that when we set the default gateway to the eth1 then
anyone trying to access a resource externally from one of the ETH0
IP's it fails.  When we set eth0 as the default gateway then ETH1 has
the same problem.  Someone earlier mentions that I need to create some
special routing and scheduling rules.

I would appriciate some ideas/scrips that might help out.  We cannot
use port mapping at this time.

I can email you some of our scripts if you need them.


2. automatically import very large ascii tables into postgresql

3. multiple gateways on a web/mailserver

4. Macro Remover

5. Routing to multiple gateways from a single NIC

6. How to shutdown in Linux?

7. How to set multiple gateways?

8. How to set up Linux like this ... ???

9. multiple gateways

10. Multiple gateways - newbie

11. Single NIC, multiple gateways, How??? Please help!!!

12. problem with pf when using rdr,route-to and multiple gateways

13. Q about redundant internet feeds, multiple gateways, redhat 7