From owner-freebsd-net@FreeBSD.ORG Mon May 17 18:35:40 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0EEE106566B for ; Mon, 17 May 2010 18:35:40 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 90D648FC0C for ; Mon, 17 May 2010 18:35:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 8F73BFEF6; Tue, 18 May 2010 06:35:39 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3YX3JcTSg166; Tue, 18 May 2010 06:35:33 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Tue, 18 May 2010 06:35:33 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 4F92E11420; Tue, 18 May 2010 06:35:33 +1200 (NZST) Date: Tue, 18 May 2010 06:35:33 +1200 From: Andrew Thompson To: Peter Kieser Message-ID: <20100517183533.GA50109@citylink.fud.org.nz> References: <4BF17814.50707@kieser.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BF17814.50707@kieser.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-net@freebsd.org Subject: Re: Bringing VLANs created with rc.conf vlans_ 'up' on boot? 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: Mon, 17 May 2010 18:35:40 -0000 On Mon, May 17, 2010 at 10:08:36AM -0700, Peter Kieser wrote: > Hello, > > I am experimenting with FreeBSD vlan's using the vlans option in > rc.conf, my configuration is as follows: > > ifconfig_em1="up" > vlans_em1="100 101 102 103 104 105 106 107 108 109 110" > autobridge_interfaces="bridge0" > autobridge_bridge0="em0 em1.*" > ifconfig_bridge0="up" > > rc script create em1.100 - em1.110 but doesn't bring the interfaces up on > boot, I have to issue 'ifconfig em1.100 up', etc. to bring them online. I > also cannot use 'ifconfig_em1.100="up"' because the rc scripts don't > support periods in the variable names. Is there a way to accomplish this? Use an underscore where the period should be, the rc.d scripts support this. ifconfig_em1.100="up" --> ifconfig_em1_100="up" cheers, Andrew