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 192.168.1.0 network should go through
192.168.1.254.What I want to avoid doing a setting 192.168.1.254 as I
already have one to leads to another network. In other words, how can
I get:

~:route
Kernel IP routing table
Destination     Gateway    Genmask         Flags Metric Ref    Use Iface
192.168.1.0  192.168.1.254  255.255.255.128 UG     0      0       0 eth0
anothernetwork   *           somemask        U     0      0       0 eth0
default       somegwip       0.0.0.0        UG     0      0       0 eth0

 
 
 

multiple gateways

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


Goot it:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.254

 
 
 

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
IP's.
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
addresses.

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.

Gary

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