This content has been marked as final. Show 6 replies
Cannot recall an option to only install IPv4 and not IPv6. The option is whether to use IPv6 or not. And that is set via +/etc/sysconfig/networking+.
You can also use lsmod | grep ipv6 to check for the module, and if the module is not loaded try modprobe ipv6. If this fails it likely means that you do not have the IPv6 kernel module installed.
Had a look on a recently updated server of ours, and IPv6 is part of the kernel. It is not installed separately. E.g.
// get kernel version [root@xxx ~]# uname -a Linux xxx 2.6.32-300.39.2.el5uek #1 SMP Wed Dec 19 14:56:59 PST 2012 x86_64 x86_64 x86_64 GNU/Linux // find package that contains IPv6 for this kernel via Public yum [root@xxx ~]# yum whatprovides '*/ipv6.ko' | grep 2.6.32-300.39.2.el5uek This system is not registered with ULN. You can use up2date --register to register. ULN support will be disabled. kernel-uek-2.6.32-300.39.2.el5uek.x86_64 : The Linux kernel Filename : /lib/modules/2.6.32-300.39.2.el5uek/kernel/net/ipv6/ipv6.ko kernel-uek-debug-2.6.32-300.39.2.el5uek.x86_64 : The Linux kernel compiled with Filename : /lib/modules/2.6.32-300.39.2.el5uek.debug/kernel/net/ipv6/ipv6.ko kernel-uek-2.6.32-300.39.2.el5uek.x86_64 : The Linux kernel Filename : /lib/modules/2.6.32-300.39.2.el5uek/kernel/net/ipv6/ipv6.ko
To expand a little on one point that Billy said:
Ensure the following is not set ( I suspect it is yes by default if this line is missing).
For Persistent setup .....
AFAIK should sort out the persistent configuration .... though I often seem to end up editting /etc/sysconfig/network-scripts/ifcfg-eth0 or whatever manually with ending up in a mess after using those utilties
I think IPV6INIT=yes is necessary in the ifcfg-XXXXX file is necessary and to configure ipv6 perisistently for the interface.
Possibly IPV6ADDR, IPV6_AUTOCONF and IPV6_MTU may be relevant in some situations.
Probably definitive link (referenced in code on OL).
here a colleague of Mathias..
We were able to enable IPV6 by removing the file /etc/modprobe.d/ipV6.conf which basically contained:
options ipv6 disable=1
alias net-pf-10 off
alias ipv6 off
install ipv6 /bin/true
After a reboot the kernel module was loaded and we automatically got IPV6 sockets.
Thank you all,