IPv6: Static Tunnel
Jump to navigation
Jump to search
Tool yang digunakan
- GNS3
- 3 Router Mikrotik
- 2 Linux
Sambungan
- R1 e0 -> R2 e0
- R1 e1 -> R3 e0
- R2 e1 -> linux
- R3 e1 -> linux
Aktifkan IPv6
R1
/system package enable ipv6 /system reset-configuration no-defaults=yes
R2
/system package enable ipv6 /system reset-configuration no-defaults=yes
R3
/system package enable ipv6 /system reset-configuration no-defaults=yes
Set IPv6 address
R1
/ip address add address=12.12.12.1/24 interface=ether1 /ip address add address=13.13.13.1/24 interface=ether2
R2
/ip address add address=12.12.12.2/24 interface=ether1 /ipv6 address add address=2001:1:2:3::1/64 interface=ether2
R3
/ip address add address=13.13.13.3/24 interface=ether1 /ipv6 address add address=2001:4:5:6::1/64 interface=ether2
check
ping
Aktifkan OSPF di R1, R2, R3 agar IPv4 bisa komunikasi
R1
routing ospf network add network=12.12.12.0/24 area=backbone routing ospf network add network=13.13.13.0/24 area=backbone
R2
routing ospf network add network=12.12.12.0/24 area=backbone
R3
routing ospf network add network=13.13.13.0/24 area=backbone
Buat tunnel antara R2 dan R3
R2
interface gre add name=tunnel0 remote-address=13.13.13.3 local-address=12.12.12.2
R3
interface gre add name=tunnel0 remote-address=12.12.12.2 local-address=13.13.13.3
Aktifkan IPv6 OSPF pada tunnel
R2
routing ospf-v3 instance set default router-id=2.2.2.2 routing ospf-v3 interface add interface=tunnel0 area=backbone routing ospf-v3 interface add interface=ether2 area=backbone
R3
routing ospf-v3 instance set default router-id=3.3.3.3 routing ospf-v3 interface add interface=tunnel0 area=backbone routing ospf-v3 interface add interface=ether2 area=backbone
Cek
ping 2001:1:2:3::1
Setup di Linux
- Set IPv6 manual bukan automatis
- Linux yang terhubung R2 gunakan IPv6 2001:1:2:3::100/64
- Linux yang terhubung R3 gunakan IPv6 2001:4:5:6::100/64
- ping ke IPv6 lawan