From owner-freebsd-net@FreeBSD.ORG Mon May 17 17:08:37 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 C3335106564A for ; Mon, 17 May 2010 17:08:37 +0000 (UTC) (envelope-from peter@kieser.ca) Received: from mail.pfak.org (unknown [IPv6:2001:470:b:14::d813:b29a]) by mx1.freebsd.org (Postfix) with ESMTP id 9A8538FC19 for ; Mon, 17 May 2010 17:08:37 +0000 (UTC) Received: from mail.pfak.org (localhost.pfak.org [127.0.0.1]) by mail.pfak.org (Postfix) with ESMTP id 1AAE440CF for ; Mon, 17 May 2010 10:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=kieser.ca; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=mail; bh=fp4naiR8VCRb9s8AWzzgfyrrm ho=; b=s98Fvk06/g6iH5uz/XNeaF/ZTIcu1atsgj4oIB/hf7Dfvmc+tGpmXK0CC IG092x9X2P1Hcz025Dt+guVIJbTVkNj8CAEX6Al1+Kw8tEhfBpvr3c9uilNRQZys zaJ55XI0kuKokLeuprCR4icQX6aZEvvlFJEu6RKjy/YDlY8RZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=kieser.ca; h=message-id:date :from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=mail; b=oQACo8FGFToiq5M1vMm tZR7nI3JQj6vtPGZQWsVP/WRDcrUh46wPKYLj9vPRYS1lkikxAF2Qm1VRbngTFRw 0z5c/aEaAkopSz8uuiX+I9O/kddcJpgOuQY1CPVGaCRjLWuB0ibznTvBueWLrs/S x1xnBib+we/gSNeKxX5GBem8= Received: from [192.168.100.16] (216-19-178-131.stc.novuscom.net [216.19.178.131]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: peter@kieser.ca) by mail.pfak.org (Postfix) with ESMTPSA id 06431405A for ; Mon, 17 May 2010 10:08:37 -0700 (PDT) Message-ID: <4BF17814.50707@kieser.ca> Date: Mon, 17 May 2010 10:08:36 -0700 From: Peter Kieser User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 17:08:37 -0000 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? In the mean time, I have had to resort to the following which is very messy (and error prone): ifconfig_em1="up" cloned_interfaces="bridge0 vlan100 vlan101 vlan102 vlan103 vlan104 vlan105 vlan106 vlan107 vlan108 vlan109 vlan110" ifconfig_vlan100="up vlan 100 vlandev em1" ifconfig_vlan101="up vlan 101 vlandev em1" ifconfig_vlan102="up vlan 102 vlandev em1" ifconfig_vlan103="up vlan 103 vlandev em1" ifconfig_vlan104="up vlan 104 vlandev em1" ifconfig_vlan105="up vlan 105 vlandev em1" ifconfig_vlan106="up vlan 106 vlandev em1" ifconfig_vlan107="up vlan 107 vlandev em1" ifconfig_vlan108="up vlan 108 vlandev em1" ifconfig_vlan109="up vlan 109 vlandev em1" ifconfig_vlan110="up vlan 110 vlandev em1" ifconfig_bridge0="up addm em0 addm vlan100 addm vlan101 addm vlan102 addm vlan103 addm vlan104 addm vlan105 addm vlan106 addm vlan107 addm vlan108 addm vlan109 addm vlan110" Any hints? Suggestions? I was trying to avoid using the method listed directly above as it is very messy and error prone. Thanks, -Peter