From owner-freebsd-stable@FreeBSD.ORG Mon Feb 21 07:32:37 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968B3106566B for ; Mon, 21 Feb 2011 07:32:37 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta15.emeryville.ca.mail.comcast.net (qmta15.emeryville.ca.mail.comcast.net [76.96.27.228]) by mx1.freebsd.org (Postfix) with ESMTP id 77EFC8FC13 for ; Mon, 21 Feb 2011 07:32:37 +0000 (UTC) Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta15.emeryville.ca.mail.comcast.net with comcast id AXYY1g0030b6N64AFXYc0c; Mon, 21 Feb 2011 07:32:36 +0000 Received: from koitsu.dyndns.org ([98.248.33.18]) by omta03.emeryville.ca.mail.comcast.net with comcast id AXYb1g00b0PUQVN8PXYbRv; Mon, 21 Feb 2011 07:32:36 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 785E49B422; Sun, 20 Feb 2011 23:32:35 -0800 (PST) Date: Sun, 20 Feb 2011 23:32:35 -0800 From: Jeremy Chadwick To: alexs@ulgsm.ru Message-ID: <20110221073235.GA35508@icarus.home.lan> References: <20110221064013.GA97226@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110221064013.GA97226@mail.ulgsm.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: vlandev interface up on start up X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 07:32:37 -0000 On Mon, Feb 21, 2011 at 09:40:13AM +0300, alexs@ulgsm.ru wrote: > if in rc.conf > cloned_interfaces="vlan66" > ifconfig_vlan66="inet 192.168.66.1 netmask 255.255.255.0 vlan 66 vlandev em0" > > When statun em0 is active, status vlan66 is active, > but packets are silently drop. > > > it is need to add in rc.conf > ifconfig_em0="up" > > Or make ifconfig em0 up by hand. > > It it rigth to patch rc scrits somewhere in vlan creating? Have you looked at /etc/defaults/rc.conf, specifically the variables "vlans_XXX" and "create_args_vlanX" (where XXX is a NIC interface name), to see if there is already existing support for what you need? Just 'grep vlan /etc/defaults/rc.conf' to see what I'm taking about. Also, comment in passing: with regards to the ifconfig_XXX="up", this is pretty common when it comes to things like bridging and so on. I ran into this situation myself a few weeks ago when playing with bridging. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |