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

From OnnoWiki
Revision as of 08:02, 20 September 2018 by Onnowpurbo (talk | contribs) (Created page with "==Skenario / Topologi sambungan:== 2002::/64 --- Gate-A 2001:470:19:b37::100 --- 2001:470:19:b37::101 Gate-B --- 2003::/64 Gateway A IPv6 2001:470:19:b37::100 Tunnel 2002:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Skenario / Topologi sambungan:

2002::/64 --- Gate-A 2001:470:19:b37::100 --- 2001:470:19:b37::101 Gate-B --- 2003::/64
Gateway A IPv6 2001:470:19:b37::100	Tunnel	2002::/64
Gateway B IPv6 2001:470:19:b37::101	Tunnel 2003::/64

Tunneling menggunakan mode ip6ip6

Pada Gateway A

Masukan perintah berikut,

ip -6 addr add 2002::1/64 dev eth0 
ip -6 tunnel add ip6tnl1 mode ip6ip6 remote 2001:470:19:b37::101 local  2001:470:19:b37::100
ip link set dev ip6tnl1 up
ip -6 route add 2003::/64 dev ip6tnl1 metric 1

Cek menggunakan perintah berikut

# ip -6 tunnel show 
ip6tnl1: ipv6/ipv6 remote 2001:470:19:b37::101 local 2001:470:19:b37::100 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) 

Pada Gateway B

Masukan perintah berikut,

ip -6 addr add 2003::1/64 dev eth0 
ip -6 tunnel add ip6tnl1 mode ip6ip6 remote 2001:470:19:b37::100 local 2001:470:19:b37::101
ip link set dev ip6tnl1 up
ip -6 route add 2002::/64 dev ip6tnl1 metric 1

Cek menggunakan perintah berikut

# ip -6 tunnel show 
ip6tnl1: ipv6/ipv6 remote 2001:470:19:b37::100 local 2001:470:19:b37::101 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) 

Cek dari Gateway A

# ping6 2003::1



Pranala Menarik