Re: Detecting if kernel is ipv6 capable



robert wrote:

Hi all,

I have an embedded system which we want to run some of the installed
application like dhcp and ssh over ipv6. Is there a simple way to
determine if the OS is ipv6 capable? We are tracking down the kernel
sources to do 'make menuconfig' - but thought I'd ask if there is a
way I can know for sure in just the shell.

Robert

You could try looking for some "tell-tales" in /proc, eg:

/proc/net/if_inet6

Problem is these are volatile and likely to be renamed whenever the linux
dev guys feel like. That won;t be a problem unless you are writing a script
that needs to run long term through random kernel upgrades. For a spot
check it will tell you though.

Another option is to as "ip", eg:

ip addr ls | grep inet6

Don;t overlook the fact that the kernel may be potentially IPv6 enabled, but
that you might need to load some modules.

HTH

Tim
.



Relevant Pages

  • Re: Unknown Error when Configure internet connection in SBS 2008
    ... Enabled IPv6, rebooted, and re-ran CTIW. ... DHCP does not have any external DNS referenced, ...
    (microsoft.public.windows.server.sbs)
  • Re: PROBLEM: IPv6 autoconf/accept_ra default values
    ... to change the sysctl parameters before the interface is brought up. ... to change the default values, ipv6 module needs to be loaded, in many ... As far as I know there is now kernel parameters to tell ... possible to use ipv6-addresses as kernel parameters at all. ...
    (Linux-Kernel)
  • PROBLEM: IPv6 autoconf/accept_ra default values
    ... to change the sysctl parameters before the interface is brought up. ... to change the default values, ipv6 module needs to be loaded, in many ... As far as I know there is now kernel parameters to tell ... kernel to not autoconf ipv6. ...
    (Linux-Kernel)
  • Re: Confusion with IPv6 on Windows Server 2008
    ... Here is how I set IPv6 up on my system. ... Install the DHCP Role ... netsh interface IPv6 set interface "Local Area Connection" ... At a Vista Client ...
    (microsoft.public.windows.server.general)
  • PROBLEM: IPv6 Dependencies Incorrect (2.6.8-rc4)
    ... One line summary of the problem: IPv6 Dependencies Incorrect ... I found that hard-compiling CONFIG_IPV6 into the kernel while ... used to compile 2.6.8-rc4. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)