Posts: 1
Joined: Wed Feb 06, 2013 10:59 pm

4in6 Tunnels

Wed Feb 06, 2013 11:38 pm


I'm trying to get a 4in6 tunnel (i.e. IPv4 traffic tunnelled across an IPv6 network) going on an RPi running Raspbian.

I've loaded the ipv6 kernel module with:

Code: Select all

sudo modprobe ipv6
and then I'm trying to create the tunnel with:

Code: Select all

sudo ip -6 tunnel add tun1 mode ipip6 remote <remote address> local <local address>
but this give me the error:

Code: Select all

add tunnel ip6tnl0 failed: No such device
I get the same result with any of the other IPv6 tunnel types so I'm guessing there is a kernel module not loaded for that device type?

Some googling suggests there ought to be an ip6_tunnel and a tunnel6 module but Raspbian seems only to have the latter which I can load ok but that doesn't fix the tunnel creation error.

On a ubunutu box lsmod shows that both ip6_tunnel and tunnel6 are loaded (and the tunnel add works ok).

Can anyone point me in the right direction?


Posts: 9
Joined: Sat Dec 01, 2012 9:52 pm

Re: 4in6 Tunnels

Sat May 25, 2013 8:13 am

I would like to create IPv4inIPv6 tunnel as well on my raspberry with raspbian 3.6.11+ kernel

I am having the same problem as hdav
could anybody please help?
thank you very much in advance

Posts: 9
Joined: Sat Dec 01, 2012 9:52 pm

Re: 4in6 Tunnels

Sat May 25, 2013 9:52 am

I decided to crosscompile the 3.6.11+ kernel and a few more modules that I needed anyway
to make that ipip6 tunnel statement work, load modules in the following sequence

Code: Select all

sudo modprobe tunnel6
sudo modprobe xfrm6_tunnel
sudo modpreobe ip6_tunnel
(without xfrm6_tunnel there were unresolved symbols in my syslog output)

https://dl.dropboxusercontent.com/u/298 ... _tunnel.ko

I uploaded the module I compiled today and it works for me on

Code: Select all

Linux raspberrypi 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l GNU/Linux

Return to “Raspberry Pi OS”