I have been trying to get 6in4 tunnelling working and the tunnel won't come up, and doesn't show up when I run ifconfig or ip tunnel and in luci it just says "Error: Network device is not present"
I think you may want to lower the mtu to 1424, add a ttl setting of 64 and use your routed /48 prefix for ip6prefix, instead of the /64 used for the tunnel.
Thank you so much for this thread! I've had my he.net tunnel up and running with no obvious issues for years, but was recently trying to get a remote Plex media server to stream video over IPv6. IPv4 was fine but it buffered constantly over IPv6. I assumed it was my ISP (Virgin Media in the UK) applying traffic shaping to the 6in4 traffic but seeing this thread made me check the MTU on the 6in4 interface. It defaults to 1280! Changing it to 1480 (I'm on a cable modem in modem mode) results in great quality streaming over IPv6
(I'm so annoyed with myself for not thinking to check this before )
root@OpenWrt:~# opkg install 6in4 luci-proto-ipv6
Package 6in4 (25-1) installed in root is up to date.
Package luci-proto-ipv6 (git-19.051.55698-76cf653-1) installed in root is up to date.
Hummm...I have a slightly different config...no ifname whatsoever.
config interface 'henet'
option proto '6in4'
option peeraddr '216.xxx.xxx.xxx'
option ip6addr '2001:4xxx:xxxx:xxxx:xxxx:2/64'
option ip6prefix '2001:xxxx:xxxx::/48'
option mtu '1480'
# I use DDNS for the following now - but they did work for me
option tunnelid 'xxxxxxxx'
option username 'xxxxxxxx'
option password 'xxxxxxxx'
You can also get come config hints from the Example Configurations screen on the Tunnebroker website - that's how I configured my first OpenWrt for IPv6:
If I recall correctly, this was recommended somewhere sometime ago, as a means to tie the 6in4 connection to the WAN interface, so the former would restart in case the later restarted.
Also, I get my internet connection from a PPPoE link, with a MTU of 1492 bytes, so the MTU on the 6in4 connection cannot be larger than 1472 bytes for me.
[Slightly OT] I recently (late January 2019) updated the 6in4 Hurricane Electric tunnel docs at Setting up an IPv6 Tunnel with LuCI, partly to get out of the business of editing config files.
I haven't done a diff against your configs and my instructions, but if you find any errors in my instructions, I'd be delighted to fix them.
Update: That page also has links to tunnelbroker.sh script that automatically reconfigures a HE.net tunnel - I found it useful when I was re-flashing my router on a weekly basis while testing firmware.