OSPF GRE Tunnel
Jika sebelumnya menggunakan virtual-link, untuk saat ini tersedia alternatifnya bisa juga menggunakan metode GRE_Tunnel
R1
R1(config)#router ospf 1
R1(config-router)#no area 1 virtual-link 2.2.2.2
R1(config-router)#exit
R2
R2(config)#router ospf 2
R2(config-router)#no area 1 virtual-link 1.1.1.1
R2(config-router)#no area 2 virtual-link 3.3.3.3
R2(config-router)#exit
R3
R3(config)#router ospf 3
R3(config-router)#no area 2 virtual-link 2.2.2.2
R3(config-router)#exit
Oke sudah kita hapus konfigurasi virtual-link nya, selanjutnya kita akan konfigurasi GRE Tunnel nya : R1
R1(config)#int tunnel 1
R1(config-if)#ip add 102.102.102.1 255.255.255.0
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#tunnel destination 12.12.12.2
R1(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#net 102.102.102.1 0.0.0.0 area 0
R1(config-router)#exit
R2
R2(config)#int tunnel 1
R2(config-if)#ip add 102.102.102.2 255.255.255.0
R2(config-if)#tunnel source 12.12.12.2
R2(config-if)#tunnel destination 12.12.12.1
R2(config-if)#exit
R2(config)#router ospf 2
R2(config-router)#network 102.102.102.2 0.0.0.0 area 0
R2(config-router)#exit
R1
R1(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 12.12.12.2, 01:08:05, FastEthernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, FastEthernet0/0
L 12.12.12.1/32 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/1001] via 102.102.102.2, 00:02:15, Tunnel1
102.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 102.102.102.0/24 is directly connected, Tunnel1
L 102.102.102.1/32 is directly connected, Tunnel1
Network Area 2 sudah masuk ke dalam routing table, namun Area 3 masih belum nih temen-temen, kita harus membuat tunnel lagi pada R2 dan R3.
R2
R2(config)#int tunnel 2
R2(config-if)#tunnel source 23.23.23.2
R2(config-if)#tunnel destination 23.23.23.3
R2(config-if)#ip add 203.203.203.2 255.255.255.0
R2(config-if)#exit
R2(config)#router ospf 2
R2(config-router)#network 203.203.203.2 0.0.0.0 area 0
R2(config-router)#exit
R3
R3(config)#int tunnel 2
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#tunnel destination 23.23.23.2
R3(config-if)#ip add 203.203.203.3 255.255.255.0
R3(config-if)#exit
R3(config)#router ospf 3
R3(config-router)#network 203.203.203.3 0.0.0.0 area 0
R3(config-router)#exit
Cek kembali :
R1
R1(config)#do sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 12.12.12.2, 01:30:02, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/2001] via 102.102.102.2, 00:07:33, Tunnel1
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/1001] via 102.102.102.2, 00:24:12, Tunnel1
O 203.203.203.0/24 [110/2000] via 102.102.102.2, 00:17:43, Tunnel1
R2
R2(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/1001] via 102.102.102.1, 00:23:33, Tunnel1
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/1001] via 203.203.203.3, 00:06:59, Tunnel2
R3
R3(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2001] via 203.203.203.2, 00:09:26, Tunnel2 2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/1001] via 203.203.203.2, 00:09:26, Tunnel2 12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/1001] via 203.203.203.2, 00:09:26, Tunnel2 102.0.0.0/24 is subnetted, 1 subnets
O 102.102.102.0 [110/2000] via 203.203.203.2, 00:09:26, Tunnel2
Test Ping :
R1
R1(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1(config)#do ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/21/24 ms
R1(config)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/56/88 ms
selesai
Comments
Post a Comment