LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IP6 tunnel & tunnel6 does not exist in /proc/modules (https://www.linuxquestions.org/questions/linux-newbie-8/ip6-tunnel-and-tunnel6-does-not-exist-in-proc-modules-4175418049/)

Lieyza 07-22-2012 02:19 AM

IP6 tunnel & tunnel6 does not exist in /proc/modules
 
Hi,

I try to run my PMIPv6 system in my ubuntu 10.04. My kernel version is 2.6.32.15+drm33.24. My system is 32 bit. While i execute my PMIPv6 command there is error occur like this :

Quote:

ip -6 addr del 2001:100::1/64 dev eth0
rmmod ip6_tunnel
ERROR: Module ip6_tunnel does not exist in /proc/modules
rmmod tunnel6
ERROR: Module tunnel6 does not exist in /proc/modules
echo "0" > /proc/sys/net/ipv6/conf/all/accept_ra
echo "0" > /proc/sys/net/ipv6/conf/eth0/accept_ra
sh: cannot create /proc/sys/net/ipv6/conf/eth0/accept_ra: Directory nonexistent
echo "0" > /proc/sys/net/ipv6/conf/eth1/accept_ra
sh: cannot create /proc/sys/net/ipv6/conf/eth1/accept_ra: Directory nonexistent
echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
ip -6 addr add 2001:100::1/64 dev eth0
ip -6 addr add 2001:2::1/64 dev eth1
modprobe ip6_tunnel
modprobe tunnel6
pkill -9 pmip6d
The ERROR in summary shows :

Quote:

ERROR: Module ip6_tunnel does not exist in /proc/modules
rmmod tunnel6
ERROR: Module tunnel6 does not exist in /proc/modules
Did anyone know how to enable this features? as in my kernel configuration the CONFIG_IPV6_TUNNEL=y . IS there anything way or hint for me to my problem?

towheedm 07-22-2012 10:01 PM

I did mention in your other post that I have never used tunnels and as such I have no idea about them.

Looking closely at your output and kernel configuration item CONFIG_IPV6_TUNNEL=y, the errors you are getting are certainly expected.

The /proc/modules file keeps a list of all loaded modules. If you do:
Code:

grep ip6 /proc/modules
it should return nothing. As should:
Code:

lsmod | grep ip6
That's because there is no ip6_tunnel module loaded.

The reason is because you have configured your kernel to have the ip6_tunnel statically linked in the kernel with the configuration item CONFIG_IPV6_TUNNEL=y. This means you have it built into the kernel so it loads whenever the kernel loads.

If you want to build it as a module, then you must set CONFIG_IPV6_TUNNEL=m and rebuild the kernel.

You can verify this by rebooting with your stock 2.6.32-21-generic kernel and then running any of the above two commands. It should return:
Code:

ip6_tunnel . . .
tunnel6 . . .

Hope this helps.


All times are GMT -5. The time now is 12:03 PM.