Dale, ignore the previous message. This one is the good one.

(Absolutely untested, but here it goes)

Mainly, you set both LANs with addresses that would fall into the same
net and use static routes at the gateways. The fact that the
communication is via an IP-IP tunnel is irrelevant. Working on your
diagram...

BEFORE
> 
> LAN1                                                        LAN2
> ==============|     10.42.2.131     10.75.78.221     |==============
> 10.42.250.0/24|--GW1-------------//-------------GW2--|10.75.250.0/24
> ==============|                                      |==============

AFTER
 
 LAN1                                                        LAN2
 ==============|     192.168.2.1     192.168.2.2      |==============
 10.42.250.0/8 |--GW1-------------//-------------GW2--|10.75.250.0/8
 ==============|                                      |==============

Now, we set up the static routes:

In GW1: eth0 netmask 255.0.0.0 (like everybody else)
        Anything to 10.75.250.0/24 (which would otherwise be local) goes
to tunl0
        Anything to 10.255.255.0/24 (which would otherwise be local)
goes to tunl0

In GW2: eth0 netmask 255.0.0.0 (like everybody else)
        Anything to 10.42.250.0/24 (which would otherwise be local) goes
to tunl0
        Anything to 10.255.255.0/24 (which would otherwise be local)
goes to tunl0

Note I've tricked the gateways into thinking 10.255.255.something are
specific destinations, instead of broadcasts.

This version should work.
-- 
 ___THE___  One man alone cannot fight the future. USE LINUX!
 \  \ /  /   _______________________________________________
  \  V  /   |Juan Carlos Castro y Castro                    |
   \   /    |[EMAIL PROTECTED]                          |
   /   \    |Linuxeiro, alvinegro, X-Phile e Carioca Folgado|
  /  ^  \   |Diretor de Inform�tica e Eventos Sobrenaturais |
 /  / \  \  |da E-RACE CORPORATION                          |
 ~~~   ~~~   -----------------------------------------------
   RACER
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to