Imre Oolberg escreveu:
Hi!

I guess that maybe i need to solve my problem using different means i.e.
administrative means but i would be thankful if somebody could comment
if there is feasible technical solution for this situation.

I have gateway between one subnet and two connections to the internet. I
would like the subnet's side of the gateway to have two ip addresses
(from the same subnet, maybe as aliases or two physical/vlan interfaces)
and based on what address host uses as its default gw to route its
traffic thru one or the other link towards the internet.

Below is meant to be a descriptive ascii illustration

    one link    ohter link to the internet
         |       |
          \ ___ /
           |   |
           |___|
             |   10.0.1.253, 10.0.1.254
             |
             |
 ---|--------|---------|-----
    |                  |
    |                  |

  host 1               host 2
  gw: 10.0.1.253       gw: 10.0.1.254


Best regards,
Imre


I must confess i had to read your mail 3 times to understand what you want to do. In your situation you can't change the default gateway of the machines, right? So you have to come up with a solution entirely based on software. Well, using two physical interfaces to talk with the subnet ain't necessary. You can use only one interface and filter your packets trough it. My suggestion is that you use tags on the internal interface, tagging packets coming from one machine as GW1 for example, and from the other as GW2. Then, you can use the route-to flag to decide, based on the tags, to which link you should route your packets. I believe that this is a way to accomplish that. There are others, but tags are simple to use and it will work perfectly for you.

My regards,

--
Giancarlo Razzolini
http://lock.razzolini.adm.br
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Verify:https://www.redhat.com/certification/rhce/current/
Moleque Sem Conteudo Numero #002
OpenBSD 4.5
Ubuntu 9.04 Jaunty Jackalope
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85

Reply via email to