6in4 endpoint

hi,
is it possible to configure a 6in4 (SIT) tunnel server / endpoint in ROS?
not as client for a tunnelbroker like HE, but rather to act as a tunnelbroker itself.

with iproute2 on linux this works with something like

ip tunnel add tun-6in4 mode sit remote <client ipv4 addr> local <local ipv4> 
ip link set tun-6in4  up
ip addr add <local ipv6> dev tun-6in4

thanks

Yes, you can.

maybe anyone has an example?

I know that ROS has /interface 6to4 but since 6in4 (STI) and 6to4 (STF) are NOT the same, the wiki article is misleading:
https://wiki.mikrotik.com/wiki/Manual:IPv6_Overview#6to4_.286in4.29_tunnels
https://en.wikipedia.org/wiki/6to4
https://en.wikipedia.org/wiki/6in4

It depends what addresses you use, but it’s the same type of tunnel (IPv6 in protocol 41 IPv4). You can have either 6to4 with public IPv6 subnet from 2002::/16 derived from public IPv4 address, or just regular point to point tunnel as you want.

It seems that “6to4 tunnel” in ROS is actually what is usually called 6in4 - a simple IPv4 tunnel to carry IPv6.
For it to become 6to4 you need to set 2002:: address manually, like in this article:
https://wiki.mikrotik.com/wiki/Setting_up_an_IPv6_tunnel_via_6to4