Date: Sun, 17 Jun 2012 22:47:13 -0400 From: Jason Hellenthal <jhellenthal@dataix.net> To: stable@freebsd.org Subject: FreeBSD 8.3-STABLE #0 r237184 if_tun auto-up upon create. Message-ID: <20120618024713.GB82047@DataIX.net>
next in thread | raw e-mail | index | archive | help
--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<UP,POINTOPOINT,MULTICAST> metric 100 mtu 1500 After removing the ifconfig_tun0=3D and running ifconfig create... tun0: flags=3D8010<POINTOPOINT,MULTICAST> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120618024713.GB82047>