Cisco OSPF : Lab 2 - Virtual Link dengan GRE Tunnel
Assalammu'alaikum
GRE Tunnel
Jadi nantinya dengan menggunakan GRE tunnel ini, kita bisa membuat link virtual sebagai penjembatan antara area2 dengan area0. Sehingga keduanya bisa saling terhubung dan saling mendapatkan informasi tabel routing.
Topology
Hapus Konfigurasi Virtual Link
R1(config)#router ospf 10 R1(config-router)#no area 1 virtual-link 0.0.0.2 |
R2(config)#router ospf 10 R2(config-router)#no area 1 virtual-link 0.0.0.1 |
Konfigurasi Tunnel
R1(config)#int tunnel 1 R1(config-if)#ip addr 100.100.100.1 255.255.255.0 R1(config-if)#tunnel source 12.12.12.1 R1(config-if)#tunnel destination 12.12.12.2 |
R2(config)#int tunnel 1 R2(config-if)#ip addr 100.100.100.2 255.255.255.0 R2(config-if)#tunnel source 12.12.12.2 R2(config-if)#tunnel destination 12.12.12.1 |
Advertise Tunnel Ke Routing OSPF
R1(config)#router ospf 10 R1(config-router)#net 100.100.100.1 0.0.0.0 area 0 |
R2(config)#router ospf 10 R2(config-router)#net 100.100.100.2 0.0.0.0 area 0 |
Cek Tabel Routing
R1(config)#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 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, 00:00:10, FastEthernet0/0 100.0.0.0/24 is subnetted, 1 subnets C 100.100.100.0 is directly connected, Tunnel1 3.0.0.0/32 is subnetted, 1 subnets O IA 3.3.3.3 [110/11113] via 100.100.100.2, 00:00:10, Tunnel1 23.0.0.0/24 is subnetted, 1 subnets O IA 23.23.23.0 [110/11112] via 100.100.100.2, 00:00:10, Tunnel1 12.0.0.0/24 is subnetted, 1 subnets C 12.12.12.0 is directly connected, FastEthernet0/0 |