Re: Detecting if kernel is ipv6 capable
- From: Tim Southerwood <ts@xxxxxxxxxx>
- Date: Fri, 25 May 2007 09:45:06 +0100
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
.
- References:
- Detecting if kernel is ipv6 capable
- From: robert
- Detecting if kernel is ipv6 capable
- Prev by Date: Re: Detecting if kernel is ipv6 capable
- Next by Date: Earn&Own-Now and for your Future!
- Previous by thread: Re: Detecting if kernel is ipv6 capable
- Next by thread: Skype Spyware
- Index(es):
Relevant Pages
|
|