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

  • 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)
  • Re: IPV6INIT=no, but does anyway on local network
    ... The Linux kernel automatically assigns a link-local IPv6 ... To get rid of the IPv6 address on a particular interface, ... by the networking scripts. ...
    (Fedora)
  • Re: network bug or feature in FC6 installer
    ... IP rather than DHCP. ... leave the IPv6 entry blank, as I have no idea what to enter there. ... By default the FC6 installer wants to ... Only then will it let me enter the ipv4 address. ...
    (Fedora)
  • Re: 2.6.18-rc3-mm2 - IPV6_MULTIPLE_TABLES borked....
    ... It basically totally refuses to answer an IPv6 Neighbor Solicit ... A kernel built with IPV6_MULTIPLE_TABLES=n works just fine. ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...
    (Linux-Kernel)
  • Re: DHCP IPv& Win2008
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... the network is only IPv6 mode. ... I've enabled managedaddress but the dhcp cannot be leased. ... "Meinolf Weber" wrote: ...
    (microsoft.public.windows.server.networking)