Subject: Re: How to create a virtual network inside a NetBSD Box
To: None <tech-net@netbsd.org>
From: Christoph Kaegi <kgc@zhwin.ch>
List: tech-net
Date: 09/24/2004 13:07:53
On 24.09-20:34, Daniel Carosone wrote:
> This is a standard NAT setup. Your confusion is all in how you've drawn it.
> 
> What you want, if I understand correctly, is for Net1 devices to use
> Net2 addresses when traversing Net3 and beyond. So, from the outside
> (net3) you see this:
> 
> 
>                          NetBSD host
>                       ..................
>                       .                .
>       I--------I      .                .      I--------I
>   ----I  Net2  I------------------------------I  Net3  I------
>       I--------I      .                .      I--------I 
>                       .                .
>                       ..................
> 
> All you need to do is NAT net1 addresses onto net2, as they leave your
> net3 interface, and arrange for the boxes on net3 and beyond to route
> packets destined for net2 via your netbsd box.
> 

Ah, thank you very much! I think I understand now. :-)
The Network doesn't need to really exist, because
NAT rewrites them before the kernel sees them.

Thanks and many regards
Chris

-- 
----------------------------------------------------------------------
Christoph Kaegi                                           kgc@zhwin.ch
----------------------------------------------------------------------