What's new

Create additional 6in4 tunnels manually?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ml70

Regular Contributor
I have a 6in4 tunnel running already (configured at RT-AC66U), but would like to add another tunnel broker, to route into their own /32 only. I still want to use existing tunnel1 for LAN's SLAAC, the new tunnel2 would only be for routing traffic directly into tunnel2 provider's /32 .

And how to make sure traffic is not routed between my tunnels 1 and 2?
 
Last edited:
To answer my own question, should it help anyone else,
# tunnel_name_here will become the device name on your router
ip tunnel add tunnel_name_here mode sit ttl 64 remote tunnel_ipv4_here local `nvram get wan0_ipaddr`
# mtu as per your tunnel provider's specs
ip link set dev tunnel_name_here mtu 1400 up
# replace with your ipv6 endpoint address/size
ip addr add 2000:0123:abc:def::2/64 dev tunnel_name_here
# Will it be the default route for all ipv6 traffic? If yes,
ip -6 route add default dev tunnel_name_here metric 1
# OR, will it just be for that ipv6 network? If size of whole network is /32,
ip -6 route add 2000:0123::/32 dev tunnel_name_here metric 1
Not totally sure about the routing part but it does work, corrections welcome.
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top