Difference between revisions of "IPv4-in-IPv6 Tunnel: Display tunnel yang ada"

From OnnoWiki
Jump to navigation Jump to search
(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> ...)
 
Line 1: Line 1:
10.2. Setup of point-to-point tunnel
+
10.1. Displaying existing tunnels
  
Usage for creating a 4over6 tunnel device (but it's not up afterward)
+
Usage:
  
# /sbin/ip tunnel add <device> mode ip4ip6 remote <ipv6addressofforeigntunnel>
+
# /sbin/ip -6 tunnel show [<device>]
¬ local <ipv6addresslocal>
 
  
Usage (generic example for three tunnels):
+
Example:
  
# /sbin/ip -6 tunnel add ip6tnl1 mode ip4ip6 remote
+
# /sbin/ip -6 tunnel show mode any
¬ <ipv6addressofforeigntunnel1> local <ipv6addresslocal>
+
ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00
# /sbin/ip link set dev ip6tnl1 up
+
¬ flowlabel 0x00000 (flowinfo 0x00000000)
# /sbin/ip -6 route add <prefixtoroute1> dev ip6tnl1 metric 1
+
ip6tnl1: ip/ipv6 remote fd00:0:0:2::a local fd00:0:0:2::1 dev eth1 encaplimit 4
 
+
¬ hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)
# /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
 

Revision as of 11:30, 22 May 2013

10.1. Displaying existing tunnels

Usage:

  1. /sbin/ip -6 tunnel show [<device>]

Example:

  1. /sbin/ip -6 tunnel show mode any

ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 ¬ flowlabel 0x00000 (flowinfo 0x00000000) ip6tnl1: ip/ipv6 remote fd00:0:0:2::a local fd00:0:0:2::1 dev eth1 encaplimit 4 ¬ hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)