Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2003 08:23:09 -0700 (PDT)
From:      Tom Samplonius <tom@sdf.com>
To:        Evren Yurtesen <eyurtese@tekniikka.turkuamk.fi>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: VLAN with/and NATD
Message-ID:  <Pine.BSF.4.05.10307260820530.16986-100000@misery.sdf.com>
In-Reply-To: <Pine.A41.4.10.10307261333510.20186-100000@bessel.tekniikka.turkuamk.fi>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 26 Jul 2003, Evren Yurtesen wrote:

> Hi,
> I would like to have a machine with 2 ethernets 1 is for outside
> connection(internet) the other one is for inside connections(VLANs)
> 
> Now the problem is that I want to use NAT inside VLANs that, lets say I
> want to be able to use use 192.168.1.0/24 IP block in every VLAN and in
> different VLAN's the same IPs should be able to be used.

  If you use the single 192.168.1.0/24 for all your VLANs, and you do not
subnet it further, you don't really have multiple VLANs.  You just have
one.

> Does anybody have any suggestion how to do this? I would guess that I need
> multiple IP addresses in the outside interface but how do I map the VLAN
> interfaces to use those IPs with NAT?

  No, you can multiple internal interfaces without problem.  natd only
cares about traffic leaving and entering the external interface.  

> Evren

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10307260820530.16986-100000>