Difference between revisions of "IPv4-in-IPv6 Tunnel: Setup point-to-point tunnel"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
10.2. Setup of point-to-point tunnel
+
Cara membuat tunnel device 4over6 (perlu di up sesudahnya)
 
 
Usage for creating a 4over6 tunnel device (but it's not up afterward)
 
  
 
  # /sbin/ip tunnel add <device> mode ip4ip6 remote <ipv6addressofforeigntunnel> local <ipv6addresslocal>
 
  # /sbin/ip tunnel add <device> mode ip4ip6 remote <ipv6addressofforeigntunnel> local <ipv6addresslocal>
  
Usage (generic example for three tunnels):
+
Contoh, misalnya membuat tiga tunnel,
  
 
  # /sbin/ip -6 tunnel add ip6tnl1 mode ip4ip6 remote <ipv6addressofforeigntunnel1> local <ipv6addresslocal>
 
  # /sbin/ip -6 tunnel add ip6tnl1 mode ip4ip6 remote <ipv6addressofforeigntunnel1> local <ipv6addresslocal>

Revision as of 17:40, 26 June 2013

Cara membuat tunnel device 4over6 (perlu di up sesudahnya)

# /sbin/ip tunnel add <device> mode ip4ip6 remote <ipv6addressofforeigntunnel> local <ipv6addresslocal>

Contoh, misalnya membuat tiga tunnel,

# /sbin/ip -6 tunnel add ip6tnl1 mode ip4ip6 remote <ipv6addressofforeigntunnel1> local <ipv6addresslocal>
# /sbin/ip link set dev ip6tnl1 up 
# /sbin/ip -6 route add <prefixtoroute1> dev ip6tnl1 metric 1
# /sbin/ip -6 tunnel add ip6tnl2 mode ip4ip6 remote <ipv6addressofforeigntunnel2> local <ipv6addresslocal>
# /sbin/ip link set dev ip6tnl2 up
# /sbin/ip -6 route add <prefixtoroute2> dev ip6tnl2 metric 1
# /sbin/ip -6 tunnel add ip6tnl3 mode ip4ip6 remote <ipv6addressofforeigntunnel3> local <ipv6addresslocal>
# /sbin/ip link set dev ip6tnl3 up
# /sbin/ip -6 route add <prefixtoroute3> dev ip6tnl3 metric 1