Date: Tue, 5 Jul 2005 09:25:10 +0200 From: bruce@nikkel.com To: Billy Newsom <smartweb@leadhill.net> Cc: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: How do I determine if ipv6 is enabled? Message-ID: <20050705072510.GA15446@nikkel.com> In-Reply-To: <42CA2605.60403@leadhill.net> References: <42CA2605.60403@leadhill.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 05, 2005 at 01:17:41AM -0500, Billy Newsom wrote: > Is there a sysctl variable, or a quick method to determine if ipv6 is > enabled in the kernel? e.g. How do I test for the prescence of ipv6 in > a script or at the commandline? You could use ifconfig together with the loopback interface (or any other network interface): ifconfig lo0 inet6 This will return true or false, depending on the ipv6 protocol support. Simple for shell scripting. Bruce Nikkel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050705072510.GA15446>