From owner-freebsd-stable@FreeBSD.ORG Mon Jun 18 14:32:00 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5622A106564A for ; Mon, 18 Jun 2012 14:32:00 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id F0C578FC16 for ; Mon, 18 Jun 2012 14:31:59 +0000 (UTC) Received: by ggnm2 with SMTP id m2so4274005ggn.13 for ; Mon, 18 Jun 2012 07:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to; bh=t2CHNIShF1CqXDuCug0DP3XDZebdIy1o5IgXRnMP7fQ=; b=RRs2n1ypYfwlqfmdDOeDwtnmMWxDXXapNQB7bB14sMkjAEL8L2VGZcqoP0AnH25Bm8 avx5Q0GPLxRLCN/vfIn9/97G6uCk/ji7W9Ch5+dUfUjZmfWrbTu5Jer2l9W7i4kvWk/Z wnbPE+bCJO0tA403bnSP+5UhaZjie3e9K6Mf0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:x-gm-message-state; bh=t2CHNIShF1CqXDuCug0DP3XDZebdIy1o5IgXRnMP7fQ=; b=WYpYEhOcH6ckXBz+UusWXg78zt4yfezDMIqOoFUjDBmClkzjZHNwtb41ylggjqCEqT 6a88ZrjTwnb5/TXwruDyafxqRtdgq6mRKmrqyMLZUi4pykYkV905JdPBGL986lyQdnhi 1ruci3L/2S7a/+/J2MQXdMTmRJtrtYORUcKFlbl8/eadsBn5skGIRk9r8lC9HOKld5dv 33MdSaQpVVIQK55ZOnarvudbOw5++zqq6pcm3iMIXixLgYyk3nH7MLEtP03hcBILC977 s27273miQNr8kVsXLBqoisvvFScvSYS+3CsCXUEPaCM0ORr5shd7SthMiscRclnYmBWI TxWg== Received: by 10.50.220.194 with SMTP id py2mr8674286igc.15.1340029919117; Mon, 18 Jun 2012 07:31:59 -0700 (PDT) Received: from DataIX.net (75-128-120-86.dhcp.aldl.mi.charter.com. [75.128.120.86]) by mx.google.com with ESMTPS id va9sm9206358igb.17.2012.06.18.07.31.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jun 2012 07:31:58 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q5IEVudV074966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Jun 2012 10:31:56 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jh@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q5IEVtAw074965; Mon, 18 Jun 2012 10:31:55 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Mon, 18 Jun 2012 10:31:55 -0400 From: Jason Hellenthal To: Eugene Grosbein Message-ID: <20120618143155.GA74775@DataIX.net> References: <20120618024713.GB82047@DataIX.net> <4FDEDAB7.7040802@rdtc.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4FDEDAB7.7040802@rdtc.ru> X-Gm-Message-State: ALoCoQlV3vrFwXbgdAbNkyjUapqzo6xeyF2bxbvhN2Ijhwdi3VVqS3OKwl5pvL6tyhx2OxKOnG7q Cc: stable@freebsd.org Subject: Re: FreeBSD 8.3-STABLE #0 r237184 if_tun auto-up upon create. 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, 18 Jun 2012 14:32:00 -0000 On Mon, Jun 18, 2012 at 02:37:27PM +0700, Eugene Grosbein wrote: > 18.06.2012 09:47, Jason Hellenthal пишет: > > > > Hoping someone here might be able to clue me in on what I am seeing. > > > > FreeBSD 8.3-STABLE #0 r237184 > > > > When creating a if_tun(4) device... > > ifconfig tun0 create > > > > With these line in rc.conf(5) > > cloned_interfaces="tun0" > > ifconfig_tun0="metric 100 down" > > > > And sysctl net.link.tun.devfs_cloning=0 > > > > The resulting tun0 device results in state... > > tun0: flags=8011 metric 100 mtu 1500 > > > > > > After removing the ifconfig_tun0= and running ifconfig create... > > tun0: flags=8010 metric 0 mtu 1500 > > > > > > Why would the device enter a UP/DOWN state if there is no addressing > > information being fed to it ? and especially with a directive of "down" > > ? > > That's because the word "up" is automatically added by system rc-scripts > for ifconfig_XXX lines, so real ifconfig statement in your case is: > > ifconfig tun0 metric 100 down up > Ugh! thanks. guess Ill just have to stick with start_if.tun0 I could swear I have other interfaces that don't do that but at least I know what I am looking for now. Thanks again -- - (2^(N-1))