<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: Bridging two networks, need broadcast
From: Adrian Snyman <adrians,AT,datrix,DOT,co,DOT,za>
Date: Thu, 26 Apr 2001 09:41:43 +0200
In-reply-to: <Pine.LNX.4.21.0104251408520.20405-100000@ns1.netmdc.com>

On Wed, 25 Apr 2001 ekool,AT,ns1,DOT,netmdc,DOT,com wrote:

> I need to bridge two remote networks together, and broadcast traffic has
> to be forwarded.
>
> I have a linux box located on the network with an eth0 and an eth0:1
> virtual interface. The internet routable IP is eth0 and eth0:1 has an ip
> in the 192.168.1.X range.
>
> I have an extra linux box here on my network and need some windows boxes
> to be able to have IP addresses in the 192.168.1.X range, and broadcast
> traffic needs to work between them.
>
> (please, dont ask why, long story)
>
> Now, i dont quite understand the documentation. Does the cpidb0 device
> need to have the same IP as the 192.168.1.X eth device for it to forward
> packets across the link properly?
>
> I have gotten it setup so i can ping 192.168.1.143 (which i assigned as
> the cpidb0 device on one end) from 192.168.1.142 (which i assigned as the
> cpidb0 device on the other end) -- but no matter what route statements i
> use, i cant get beyond that. Which, im sure i'm doing something wrong
> since doing an add route -net would require me to have two gateways.
>
> Please, any advice is appreciated.
>

Remember, the VPN you are creating is effectively another network ..

So, create the interfaces using:

CIPE Interface 1:192.168.254.1
CIPE Interface 2:192.168.254.2

now you should be able to ping the remote interface ..

Then set up the routes :

(CIPE 1) route add -net 192.168.1.0/24 gw 192.168.254.1
(CIPE 2) route add -net 192.168.1.0/24 gw 192.168.254.2

I'm not to sure if this is what you want (or if it even works !!)

Then again, you could just use different ip ranges on either side of the
VPN ..

 -----------------------------------------------------------------
|    .--.    Adrian Snyman - Datrix Solutions                     |
|   |o_o |   mailto:adriansREMOVE,AT,datrix,DOT,co,DOT,za                    |
|   |:_/ |   Tel: +27 11 888-1869                                 |
|  //   \ \  Cell: +27 82 600-1211                                |
| (|     | )                                                      |
|/'\_   _/`\ Big Bang Theory Sense: First there was nothing ..    |
|\___)=(___/                        Then it exploded ..           |
 -----------------------------------------------------------------





<< | Thread Index | >> ]    [ << | Date Index | >> ]