Skip to main content

OSPF GRE Tunnel

 

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

Popular posts from this blog

Phase 1 Dynamic Mapping With EIGRP

  Phase 1 Dynamic  Mapping With EIGRP Tentu kalian sudah tau, apa yang akan kita bahas pada blogg ini yaitu    Phase 1 Dynamic Mapping With EIGRP . ..  Nah Pada lab Sekarang buat routing eigrp pada setiap router baik hub  atau spoke untuk menghubungkan jaringan local masing-masing spoke  atau hub, dalam hal ini ip loopback akan kita anggap sebagai ip jaringan  local kita gaessss. Dan disini seperti di judul, kita menggunakan routing EIGRP lagi yaa... Oiya, karena ini adalah lab lanjutan dari lab VPN sebelumnya... soo saya hanya melakukan konfigurasi yang hanya pada lab ini saja, dan jika temen - temen ingin melihat konfigurasi dasarnya dari lab ini... temen - temen bisa lihat di lab - lab sebelumnya... silahkan copy dan paste link dibawah ini.. 👉https://insinyurbocah2109.blogspot.com/2020/11/belajar-vpn-gre-tunnel.html BELAJAR VPN ( GRE TUNNEL ) - Lab 1 VPN 👉 https://insinyurbocah2109.blogspot.com/2020/11/belajar-vpn-ipsec-tunnel-mode.html BELAJ...

Konfigurasi Event CLI

Konfigurasi Event CLI =LAB INI LANJUTAN DARI LAB SEBELUMNYA TOPOLOGI 1 R1(config)#event manager applet SHOW_INTERFACE_UP R1(config-applet)#event cli pattern "show ip interface brief" sync yes R1(config-applet)#action 1.0 cli command "enable" R1(config-applet)#action 2.0 cli command "show ip interface brief | include up" R1(config-applet)#action 3.0 puts "$_cli_result" R1(config-applet)#action 4.0 set $_exit_status "0" SETELAH ITU BISA KALIAN CEK DENGAN DO SH IP INT BR 

Konfigurasi Event OSPF Adjacency (Email)

  Konfigurasi Event OSPF Adjacency (Email) LAB INI LANJUTAN SAMA SEPERTI LAB SEBELUM SEBELUMNYA Selain event syslog tadi kita juga bisa memanfaatkan EEM ini untuk mengirimkan informasi ke email kita, misalnya OSPF kita down maka, router kita otomatis akan mengirimkan debug ospf ke email kita. Untuk topology masih sama. KONFIG R1 R1(config)#event manager applet OSPF_DOWN R1(config-applet)#event syslog pattern "Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN" R1(config-applet)#action 1.0 cli command "enable" R1(config-applet)#action 2.0 cli command "debug ip ospf adj" R1(config-applet)#action 3.0 mail server "smtp.gmail.com" to "uuqeili@gmail.com" from "R1@idn.id" subject "OSPF IS DOWN" body "Please fix OSPF" R1(config-applet)#exit Untuk Pengecekkan, kita bisa coba debug aja,  dan hapus EEM interface down,  Dan kita bisa lihat di email kita apa hasilnyaa... selesai