From owner-freebsd-net@FreeBSD.ORG Tue Jan 17 08:23:45 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 92B2216A41F for ; Tue, 17 Jan 2006 08:23:45 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from dbmail-mx4.orcon.co.nz (loadbalancer1.orcon.net.nz [219.88.242.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9BC343D45 for ; Tue, 17 Jan 2006 08:23:44 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by dbmail-mx4.orcon.co.nz (8.13.5/8.13.5/Debian-3) with ESMTP id k0H8NdAG003564; Tue, 17 Jan 2006 21:23:39 +1300 Received: by heff.fud.org.nz (Postfix, from userid 1001) id 18D972843B; Tue, 17 Jan 2006 21:23:50 +1300 (NZDT) Date: Tue, 17 Jan 2006 21:23:49 +1300 From: Andrew Thompson To: Marcin Jessa Message-ID: <20060117082349.GC25291@heff.fud.org.nz> References: <20060116091605.GB18530@heff.fud.org.nz> <20060116112504.63ba886b.lists@yazzy.org> <20060116180333.GA30608@odin.ac.hmc.edu> <20060117091038.2a2027e0.lists@yazzy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060117091038.2a2027e0.lists@yazzy.org> User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV 0.88/1243/Mon Jan 16 07:35:18 2006 on dbmail-mx4.orcon.co.nz X-Virus-Status: Clean Cc: freebsd-net@freebsd.org Subject: Re: autobridge patch 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: Tue, 17 Jan 2006 08:23:45 -0000 On Tue, Jan 17, 2006 at 09:10:38AM +0100, Marcin Jessa wrote: > Brooks Davis wrote: > > > Andrew Thompson wrote: > > > > > > > > I have a patch here that adds the ability to automatically add an > > > > interface to a bridge when its attached. This is aimed towards > > > > > > I just rebuild and installed my world and kernel to test the > > > patches. Seems like things did not work as expected. > > If you want to rename the vlan interface use: > > ... > > Would be great if Andrew also wrote an example of how the patchset > works. I read the patches now and it seems it works for bridge > interfaces only adding ability to automatically add new interfaces to > the bridge with the new "autobridge_*" options. Yes, the patch is purely to add the autobridge feature. Its controlled from rc.conf and a typical setup would be: # create the bridge and add the wired interface cloned_interfaces="bridge0" ifconfig_bridge0="up addm fxp0" # set it so that tap interfaces get added too autobridge_interfaces="bridge0" autobridge_bridge0="tap*" > The original post confused me making me think the patches made it > possible to use a feature I was looking for and that I did know existed > - operate on pseudo interfaces the same way one does with the normal > ones. > Your last comment in the "Automatic VLANS" thread on the same > mailinglist made me assume I could not rename pseudo devices at boot > with the rc.conf script, which I can see now was fully possible. Well it does that too while not the intention of the patch. Think of it as a bonus. Andrew