IPv4-in-IPv6 Tunnel: Setup point-to-point tunnel

From OnnoWiki
Revision as of 11:30, 22 May 2013 by Onnowpurbo (talk | contribs) (New page: 10.2. Setup of point-to-point tunnel Usage for creating a 4over6 tunnel device (but it's not up afterward) # /sbin/ip tunnel add <device> mode ip4ip6 remote <ipv6addressofforeigntunnel> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

10.2. Setup of point-to-point tunnel

Usage for creating a 4over6 tunnel device (but it's not up afterward)

  1. /sbin/ip tunnel add <device> mode ip4ip6 remote <ipv6addressofforeigntunnel>

¬ local <ipv6addresslocal>

Usage (generic example for three tunnels):

  1. /sbin/ip -6 tunnel add ip6tnl1 mode ip4ip6 remote

¬ <ipv6addressofforeigntunnel1> local <ipv6addresslocal>

  1. /sbin/ip link set dev ip6tnl1 up
  2. /sbin/ip -6 route add <prefixtoroute1> dev ip6tnl1 metric 1
  1. /sbin/ip -6 tunnel add ip6tnl2 mode ip4ip6 remote

¬ <ipv6addressofforeigntunnel2> local <ipv6addresslocal>

  1. /sbin/ip link set dev ip6tnl2 up
  2. /sbin/ip -6 route add <prefixtoroute2> dev ip6tnl2 metric 1
  1. /sbin/ip -6 tunnel add ip6tnl3 mode ip4ip6 remote

¬ <ipv6addressofforeigntunnel3> local <ipv6addresslocal>

  1. /sbin/ip link set dev ip6tnl3 up
  2. /sbin/ip -6 route add <prefixtoroute3> dev ip6tnl3 metric 1