From owner-freebsd-stable@FreeBSD.ORG Mon Jun 18 02:52:21 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 245951065670 for ; Mon, 18 Jun 2012 02:52:21 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0A138FC12 for ; Mon, 18 Jun 2012 02:52:20 +0000 (UTC) Received: by yenl8 with SMTP id l8so3957583yen.13 for ; Sun, 17 Jun 2012 19:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition; bh=Q0d71hJZOD9Ng/1DkIJ1q24kk1fBTp7YM7bb25x9qUU=; b=OCpppBzXs6CWMu/8hVktBSDdfgQCqyvLl93SHoKy5leArE4nRpkJuqurfkHZdpITtt BhWmhKp3RBA0hpudV4l29jV2hDdJYA0eVxhhefWrWT/IfcKOHRGh7jBtLMVUOx9BmPBd 2T/WeAmDj4xnW2PqgzpVCLE/l0PU5ogImS+fo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:x-gm-message-state; bh=Q0d71hJZOD9Ng/1DkIJ1q24kk1fBTp7YM7bb25x9qUU=; b=efReFaSWRCIMpz1aF3o0Vh1USLJWt7QwynE6F4VQ5/YIPbFu2sh2YMLmeAqFGHlEPQ XkOgTWfjj9qlpr+jwem6uc+xff8xos/NjkXhID3iHiaAQPJn3RNQuX8/T1XSjA0E1J/d wJ/eYwELDu5k60HU7uXqvsdX8EEtrC2KLV6tIQCC9whPCDzQ5kAZSqMPzHSH6A6K1CRr Tb/TkbUrjxXwS17EvfJSJoxVFJsqn3ClHSGN8ioC4/gcKfD1AUTlvl+Mx4YNnf3OKXgX xds1swiL80aHWHsHYQpcikBlOWxLXnTYZmmi9QeOPLfj2i60z70IOod0EZLEO1peIn50 GD4g== Received: by 10.42.70.136 with SMTP id f8mr3980849icj.28.1339987637210; Sun, 17 Jun 2012 19:47:17 -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 k6sm7946404igz.9.2012.06.17.19.47.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jun 2012 19:47:16 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q5I2lEFL087553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 17 Jun 2012 22:47:14 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jh@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q5I2lDS9087552 for stable@freebsd.org; Sun, 17 Jun 2012 22:47:13 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sun, 17 Jun 2012 22:47:13 -0400 From: Jason Hellenthal To: stable@freebsd.org Message-ID: <20120618024713.GB82047@DataIX.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline X-Gm-Message-State: ALoCoQnEFdoJsq5CqoxrhAupP3nR4QJMZsJTfhiBS/nMfUuHz4X49+7zZneZBs6GYRwg+lauaP9r Cc: Subject: 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 02:52:21 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 With these line in rc.conf(5) cloned_interfaces=3D"tun0" ifconfig_tun0=3D"metric 100 down" And sysctl net.link.tun.devfs_cloning=3D0 The resulting tun0 device results in state... tun0: flags=3D8011 metric 100 mtu 1500 After removing the ifconfig_tun0=3D and running ifconfig create... tun0: flags=3D8010 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" ? As a workaround I just removed the ifconfig_tun0=3D and dropped a ifconfig command in rc.local to achieve what I want for the moment. I need this interface created but not in any state unless otherwise manually specified. Thanks --=20 - (2^(N-1)) --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJP3pawAAoJEBSh2Dr1DU7WZPYIAI9dKJf6E4fkMSD8KfS1iS+g WzdhXG+A5/of/DF9We0yl3VfH8TLlVtvQJjGk0f17xQZWt5SN61ABkPzIL1E1z9/ oU/wc2bHF5G9FGcIZEW55lkgMa/yq/g/Ka5uye0U1MylQV7vUJqtTgdCBCJjpkqA p0IGp3VK3ojW+s+V30/bemFqzaHMTHirqu1oc7OfxiAPx2hVa3fErcZQtsxBKlnw Q8J0i5pM38Rj0zvYB83YrImFbYtNAM1PPvNG20fEj2XQnAR7132Z19JOXOx5T2d7 7qugLlrfn5st0Lmj871xWTRlwRzxRef0eZ035ZV31ombT/SN7zSZbyBJ52iRsTc= =S427 -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--