IPv6-in-IPv6 Tunnel: Setup point-to-point tunnel
Skenario / Topologi sambungan:
2002::/64 --- Gate-A 2001::100 --- 2001:101 Gate-B --- 2003::/64
Gateway A IPv6 2001::100 Tunnel 2002::/64 Gateway B IPv6 2001::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::101 local 2001::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::101 local 2001::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