From owner-freebsd-net@FreeBSD.ORG Thu Nov 2 17:28:59 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 879C816A62F for ; Thu, 2 Nov 2006 17:28:59 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF0C343D93 for ; Thu, 2 Nov 2006 17:28:52 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 8C2981CC26; Fri, 3 Nov 2006 06:28:51 +1300 (NZDT) Date: Fri, 3 Nov 2006 06:28:51 +1300 From: Andrew Thompson To: 'Jeremie Le Hen' Message-ID: <20061102172851.GA26723@heff.fud.org.nz> References: <20061023094742.GA53114@obiwan.tataz.chchile.org> <200610311610.ALN52349@mirapoint.uc.edu> <20061102171222.GV20405@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061102171222.GV20405@obiwan.tataz.chchile.org> User-Agent: Mutt/1.5.11 Cc: Raymond Wagner , freebsd-net@freebsd.org Subject: Re: Virtual Network Interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 17:28:59 -0000 On Thu, Nov 02, 2006 at 06:12:22PM +0100, 'Jeremie Le Hen' wrote: > Hi Raymond, > > On Tue, Oct 31, 2006 at 11:10:47AM -0500, Raymond Wagner wrote: > > Your other method is that I keep NAT on the internal interface as normal, > > and then create VLANs, bridged to the external interface, to each computer > > with an external IP. Those machines would communicate as normal on the > > internal network, but use the VLAN interface for external access. I've not > > used VLANs before, so I don't know exactly how they work. I know the > > wrapper causes some overhead, and my switch drops packets >1500 bytes. Do I > > have to lower the MTU on the internal network, or just the VLANs and > > external? Also, will my ISP know not to send the larger packets? > > 802.1q (namely VLAN) adds a 4-bytes header which means your network > adapter must support a MTU of 1504 bytes. AFAIK, most of network > cards do this. I haven't heard of problems like this so far. > > I've Cc'ed Andrew Thompson which has imported if_bridge(4) from > OpenBSD into FreeBSD. He will likely be able to answer your question > and tell whether it is possible to bridge two VLAN interfaces > (attached to a physical interface) with another physical interface. That will work fine. The area where the bridge lacks is bridging vlan trunks but you do not appear to be doing that. Andrew