How do I determine if ipv6 is enabled?
dwmalone at maths.tcd.ie
Tue Jul 5 06:35:08 GMT 2005
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 check for the existance of the net.inet6 sysctl tree. If
IPv6 is present then "sysctl net.inet6" will return true, otherwise
it will return an error.
(Note, that this doesn't mean that IPv6 has been configured, just
that the kernel supports it.)
More information about the freebsd-stable