Objective
Mempelajari solusi terhadap area lain yang tidak terhubung langsung ke area 0. dimana dalam lab kali ini yang digunakan adalah GRE Tunnel
Metode Lab
- Konfigurasikan melanjutkan sebelumnya
- Area 2 dan Area 3 tidak terhubung ke Area 0
- Gunakan GRE Tunnel1 untuk menghubungkan Area 2 ke Area 0, advertise interface ise GRE Tunnel1 ke OSPF area 0
- Gunakan GRE Tunnel2 untuk menghubungkan Area 3 ke Area 0, advertise interface GRE Tunnel2 ke OSPF Area 0
Verifikasi
Pastikan semua ip loopback yang berada pada area OSPF yang berbeda bisa saling di ping oleh semua operator
Hapus dulu konfigurasi virtual linknya
RM-R1(config)#router os 1 RM-R1(config-router)#no area 1 virtual-link 2.2.2.2 RM-R2(config)#router os 2 RM-R2(config-router)#no area 1 virtual-link 1.1.1.1 RM-R2(config-router)#no area 2 virtual-link 3.3.3.3 RM-R3(config)#router os 3 RM-R3(config-router)#no area 2 virtual-link 2.2.2.2
kemudian kita konfigurasikan GRE Tunnelnya
RM-R1(config)#int tun1 RM-R1(config-if)#ip address 102.102.102.1 255.255.255.0 RM-R1(config-if)#tunnel source 12.12.12.1 RM-R1(config-if)#tunnel destination 12.12.12.2 RM-R1(config-if)#exit RM-R1(config)#router os 1 RM-R1(config-router)#network 102.102.102.1 0.0.0.0 area 0 RM-R2(config)#int tun1 RM-R2(config-if)#ip address 102.102.102.2 255.255.255.0 RM-R2(config-if)#tunnel source 12.12.12.2 RM-R2(config-if)#tunnel destination 12.12.12.1 RM-R2(config-if)#router os 2 RM-R2(config-router)#network 102.102.102.2 0.0.0.0 area 0
cek lagi routing tabelnya
RM-R1(config-router)#do sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 102.0.0.0/24 is subnetted, 1 subnets C 102.102.102.0 is directly connected, Tunnel1 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/11] via 12.12.12.2, 00:00:43, FastEthernet0/0 23.0.0.0/24 is subnetted, 1 subnets O IA 23.23.23.0 [110/11175] via 102.102.102.2, 00:00:43, Tunnel1 12.0.0.0/24 is subnetted, 1 subnets C 12.12.12.0 is directly connected, FastEthernet0/0 RM-R1(config-router)#
network Area 2 sudah masuk dalam routing tabel, namun untuk network Area 3 masih belum terdapat dalam routing tabelnya.
RM-R2(config)#int tun2 RM-R2(config-if)#tunnel source 23.23.23.2 RM-R2(config-if)#tunnel destination 23.23.23.3 RM-R2(config-if)#ip address 203.203.203.2 255.255.255.0 RM-R2(config-if)#exit RM-R2(config)#router os 2 RM-R2(config-router)#network 203.203.203.2 0.0.0.0 area 0 RM-R3(config)#int tun2 RM-R3(config-if)#tunnel source 23.23.23.3 RM-R3(config-if)#tunnel destination 23.23.23.2 RM-R3(config-if)#ip address 203.203.203.3 255.255.255.0 RM-R3(config-if)#exit RM-R3(config)#router os 3 RM-R3(config-router)#network 203.203.203.3 0.0.0.0 area 0
Verifikasi
RM-R1(config-router)#do sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 102.0.0.0/24 is subnetted, 1 subnets C 102.102.102.0 is directly connected, Tunnel1 O 203.203.203.0/24 [110/22222] via 102.102.102.2, 00:00:52, Tunnel1 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/11] via 12.12.12.2, 00:05:15, FastEthernet0/0 3.0.0.0/32 is subnetted, 1 subnets O IA 3.3.3.3 [110/22223] via 102.102.102.2, 00:00:52, Tunnel1 23.0.0.0/24 is subnetted, 1 subnets O IA 23.23.23.0 [110/11175] via 102.102.102.2, 00:00:54, Tunnel1 12.0.0.0/24 is subnetted, 1 subnets C 12.12.12.0 is directly connected, FastEthernet0/0 RM-R1(config-router)# RM-R2(config-router)#do sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 102.0.0.0/24 is subnetted, 1 subnets C 102.102.102.0 is directly connected, Tunnel1 C 203.203.203.0/24 is directly connected, Tunnel2 1.0.0.0/32 is subnetted, 1 subnets O 1.1.1.1 [110/11112] via 102.102.102.1, 00:02:24, Tunnel1 2.0.0.0/32 is subnetted, 1 subnets C 2.2.2.2 is directly connected, Loopback0 3.0.0.0/32 is subnetted, 1 subnets O IA 3.3.3.3 [110/11112] via 203.203.203.3, 00:02:24, Tunnel2 23.0.0.0/24 is subnetted, 1 subnets C 23.23.23.0 is directly connected, Serial0/0 12.0.0.0/24 is subnetted, 1 subnets C 12.12.12.0 is directly connected, FastEthernet0/0 RM-R2(config-router)# RM-R3(config-router)#do sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 102.0.0.0/24 is subnetted, 1 subnets O 102.102.102.0 [110/22222] via 203.203.203.2, 00:03:23, Tunnel2 C 203.203.203.0/24 is directly connected, Tunnel2 1.0.0.0/32 is subnetted, 1 subnets O 1.1.1.1 [110/22223] via 203.203.203.2, 00:03:23, Tunnel2 2.0.0.0/32 is subnetted, 1 subnets O IA 2.2.2.2 [110/11112] via 203.203.203.2, 00:03:23, Tunnel2 3.0.0.0/32 is subnetted, 1 subnets C 3.3.3.3 is directly connected, Loopback0 23.0.0.0/24 is subnetted, 1 subnets C 23.23.23.0 is directly connected, Serial0/0 12.0.0.0/24 is subnetted, 1 subnets O IA 12.12.12.0 [110/11121] via 203.203.203.2, 00:03:26, Tunnel2 RM-R3(config-router)# RM-R1(config-router)#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 RM-R1(config-router)#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 = 24/96/224 ms RM-R1(config-router)#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 = 52/143/292 ms RM-R1(config-router)#