Lab 19. OSPF - Timers

Juni 07, 2017 Add Comment

Konfigurasikan OSPF pada setiap router
R1(config)#router ospf 1
R1(config-router)#network 12.12.12.0 0.0.0.255 area 0
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0

R2(config)#router ospf 2
R2(config-router)#network 12.12.12.0 0.0.0.255 area 0
R2(config-router)#network 23.23.23.0 0.0.0.255 area 0
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0

R3(config)#router ospf 3
R3(config-router)#network 23.23.23.0 0.0.0.255 area 0
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
Cek hello timer dan dead interval secara defulat pada ospf interface, dengan perintah
R1#show ip ospf int e0/0
Ethernet0/0 is up, line protocol is up
Internet Address 12.12.12.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 10
Topology-MTID Cost Disabled Shutdown Topology Name
0 10 no no no Base
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 2.2.2.2, Interface address 12.12.12.2 Backup Designated router (ID) 1.1.1.1, Interface address
12.12.12.1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit
5
Rubah Hello Interval nya
R1(config)#int e0/0
R1(config-if)#ip ospf hello-interval 20
Ketika hello interval di rubah yang terjadi adalah dead time juga ikut berubah menjadi 4x nilai hellonya namun tidak berlaku sebaliknya.cek kembali OSPF timernya
R1#show ip ospf int e0/0
Ethernet0/0 is up, line protocol is up
Internet Address 12.12.12.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 10
Topology-MTID Cost Disabled Shutdown Topology Name
0 10 no no no Base
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 2.2.2.2, Interface address 12.12.12.2 Backup Designated router (ID) 1.1.1.1, Interface address
12.12.12.1
Timer intervals configured, Hello 20, Dead 80, Wait 40, Retransmit
5
Akan muncul pesan seperti ini
*Jun 7 06:49:27.836: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Ethernet0/0 from FULL to DOWN, Neighbor Down: Dead timer expired
kita coba samakan, rubah dead timer nya pada R2 eth0/0
R2(config)#int e0/1
R2(config-if)#ip ospf hello-interval 20
akan terjadi adjency, nah disini kita tahu bahwasannya syarat hello timer pada OSPF yaitu harus sama antar eth.sekarang kita coba rubah dead intervalnya menjadi 30 detik
R2(config)#int e0/1
R2(config-if)#ip ospf dead-interval 30

R3(config)#int e0/0
R3(config-if)#ip ospf dead-interval 30
jika dead interval dirubah hello timer akan mengukuti dead interval yang kita set.

Lab 18. OSPF - Redistribution

Juni 07, 2017 Add Comment
Pertama kita konfigurasikan single area ospf pada semua router
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0 R1(config-router)#network 12.12.12.0 0.0.0.255 area 0

R2(config)#router ospf 2
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 12.12.12.0 0.0.0.255 area 0
R2(config-router)#network 23.23.23.0 0.0.0.255 area 0
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0

R3(config)#router ospf 3
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 23.23.23.0 0.0.0.255 area 0
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
Tambahkan Loopback pada R1 yang nantinya loopback ini akan dituju oleh router lain secara static.
R1(config)#int lo1
R1(config-if)#ip address 10.10.10.1 255.255.255.255
Tambahkan Loopback pada R2 juga
R2(config)#int lo1
R2(config-if)#ip address 20.20.20.1 255.255.255.255
R2(config-if)#int lo2
R2(config-if)#ip address 20.20.20.2 255.255.255.255
R2(config-if)#int lo3
R2(config-if)#ip address 20.20.20.3 255.255.255.255
Advertise network 20.20.20.1 ke EIGRP
R2(config)#router eigrp 1
R2(config-router)#network 20.20.20.1 0.0.0.0
R2(config-router)#no auto-summary
Advertise network 20.20.20.0 ke ripv2
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 20.20.20.0
R2(config-router)#no auto-summary
Buat static route untuk ke lopback R1
R2(config)#ip route 10.10.10.1 255.255.255.255 12.12.12.1
Redistribute kan EIGRP, RIP, STATIC ROUTE, dan Connected
R2(config)#router ospf 2
R2(config-router)#redistribute eigrp 1 subnets
R2(config-router)#redistribute rip subnets
R2(config-router)#redistribute static subnets
R2(config-router)#redistribute connected subnets
Cek tabel routingnya
R3(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 23.23.23.2, 00:01:12, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:01:12, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
10.0.0.0/32 is subnetted, 1 subnets
O E2 10.10.10.1 [110/20] via 23.23.23.2, 00:01:12, Ethernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/20] via 23.23.23.2, 00:01:12, Ethernet0/0
20.0.0.0/32 is subnetted, 3 subnets
O E2 20.20.20.1 [110/20] via 23.23.23.2, 00:01:12, Ethernet0/0
O E2 20.20.20.2 [110/20] via 23.23.23.2, 00:01:12, Ethernet0/0
O E2 20.20.20.3 [110/20] via 23.23.23.2, 00:01:12, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/0
L 23.23.23.3/32 is directly connected, Ethernet0/0
Bisa kita lihat network dengan routing protokol yang berbeda telah muncuk di routing table R3, so jadi fungsi  redistribute adalah menghubungkan protokol routing yang berbeda.

Lab 17. OSPF - Conditional Default Route

Juni 07, 2017 Add Comment
Conditional default route berfungsi agar R2 mengadvertise default route ke R1 jika jalur kearah ISP aktif. Tapi jika jalurnya terputus maka R2 tidak akan mengirimkan default route ke R1. Pertama hapus dulu settingan default route di lab sebelumnya
R1(config)#router ospf 1
R1(config-router)#no default-information originate always
Konfigurasi Default Route, jangan lupa hapus settingan di lab sebelumnya
R2(config)#router ospf 2
R2(config-router)#no network 23.23.23.0 0.0.0.255 area 0
R2(config)#ip route 0.0.0.0 0.0.0.0 23.23.23.3

R3(config)#router ospf 2
R3(config-router)#no network 23.23.23.0 0.0.0.255 area 0
R3(config)#ip route 0.0.0.0 0.0.0.0 23.23.23.2
Konfigurasikan route-map sebagai aturan untuk conditional default route
R2(config)#access-list 1 permit 23.23.23.0 0.0.0.255
R2(config)#route-map OSPF_defroute permit 10
R2(config-route-map)#match ip address 1
R2(config)#router ospf 2
R2(config-router)#default-information originate route-map OSPF_defroute
pastikan R1 mendapatkan default route
IDN-R1(config)#do sh ip route
Gateway of last resort is 12.12.12.2 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 12.12.12.2, 00:05:44, Ethernet0/0
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, 02:12:13, Ethernet0/0
10.0.0.0/32 is subnetted, 3 subnets
C 10.10.10.1 is directly connected, Loopback1
C 10.10.10.2 is directly connected, Loopback2
C 10.10.10.3 is directly connected, Loopback3
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.1/32 is directly connected, Ethernet0/0
kita coba matikan interface e0/1 pada R2 yang menuju ke R3 (ISP)
R2(config)#int e0/1
R2(config-if)#shutdown
cek routing table R1 dan pastikan default route sudah hilang
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/11] via 12.12.12.2, 02:05:52, Ethernet0/0
10.0.0.0/32 is subnetted, 3 subnets
C 10.10.10.1 is directly connected, Loopback1
C 10.10.10.2 is directly connected, Loopback2
C 10.10.10.3 is directly connected, Loopback3
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.1/32 is directly connected, Ethernet0/0
untuk mengeceknya lagi silahkan coba hidupakan kembali int e1/0 di R2 dan cek kembali routing table R1, jika konfigurasi sudah benar default route akakn muncul kembali di R1.

Lab 16. OSPF - Default Route

Juni 07, 2017 Add Comment

Konfigurasikan OSPF yang akan di set default route nantinya
R1(config)#router ospf 1
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R1(config-router)#network 12.12.12.0 0.0.0.255 area 0

R2(config)#router ospf 2
R2(config-router)#network 12.12.12.0 0.0.0.255 area 0
R2(config-router)#network 23.23.23.0 0.0.0.255 area 0
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0

R3(config)#router ospf 3
R3(config-router)#network 23.23.23.0 0.0.0.255 area 0
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
tambah ip loopback yang tidak akan diadvertise ke ospf, loopback ini tidak masuk routing table hanya sebagi uji coba default route.
R1(config)#int lo1
R1(config-if)#ip address 10.10.10.1 255.255.255.255
R1(config-if)#int lo2
R1(config-if)#ip address 10.10.10.2 255.255.255.255
R1(config)#int lo3
R1(config-if)#ip address 10.10.10.3 255.255.255.255

R1(config)#router ospf 1
R1(config-router)#default-information originate always
Perintah diatas berfungsi untuk mendistribusikan default route kedalam ospf. Keyword always berfungsi bila tidak ada baris perintah static default route (ip route x.x.x.x)
R2(config)#do sh ip route
Gateway of last resort is 12.12.12.1 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 12.12.12.1, 00:00:29, Ethernet0/0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 00:05:20, Ethernet0/0
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 3.3.3.3 [110/11] via 23.23.23.3, 00:04:48, Ethernet0/1
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.2/32 is directly connected, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/1

L 23.23.23.2/32 is directly connected, Ethernet0/1

R2(config)#do ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

R3(config)#do sh ip route 10.10.10.2
% Network not in table
bisa dilihat diatas ip 10.10.10.1 yang ada pada loopback sudah bisa di ping tapi apabila di cek di routing table tidak terdeteksi.

Lab 15. OSPF - Summarization Summary Address

Juni 05, 2017 Add Comment
konfigurasi routing untuk di set summary ;
R1(config)#router ospf 1
R1(config-router)#no network 10.10.10.0 0.0.0.255 area 1
R1(config)#router eigrp 1
R1(config-router)#network 10.10.10.0 0.0.0.7
R1(config-router)#no auto-summary
R1(config)#router ospf 1
R1(config-router)#redistribute eigrp 1 subnets
cek table routing di R3
R3#show ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 23.23.23.2, 00:18:36, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:18:36, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
10.0.0.0/32 is subnetted, 6 subnets
O E2 10.10.10.1 [110/20] via 23.23.23.2, 00:01:14, Ethernet0/0
O E2 10.10.10.2 [110/20] via 23.23.23.2, 00:01:14, Ethernet0/0
O E2 10.10.10.3 [110/20] via 23.23.23.2, 00:01:14, Ethernet0/0
O E2 10.10.10.4 [110/20] via 23.23.23.2, 00:01:14, Ethernet0/0
O E2 10.10.10.5 [110/20] via 23.23.23.2, 00:01:14, Ethernet0/0
O E2 10.10.10.6 [110/20] via 23.23.23.2, 00:01:14, Ethernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/20] via 23.23.23.2, 00:18:36, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/0
L 23.23.23.3/32 is directly connected, Ethernet0/0
Konfigurasikan External route summary di R1
R1(config)#router ospf 1
R1(config-router)#summary-address 10.10.10.0 255.255.255.248
cek kembali routing table R3 dan R1
R3#show ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 23.23.23.2, 00:21:08, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:21:08, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
10.0.0.0/29 is subnetted, 1 subnets
O E2 10.10.10.0 [110/20] via 23.23.23.2, 00:00:59, Ethernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/20] via 23.23.23.2, 00:21:08, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, Ethernet0/0
L 23.23.23.3/32 is directly connected, Ethernet0/0

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/11] via 12.12.12.2, 00:17:47, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/21] via 12.12.12.2, 00:17:47, Ethernet0/0
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O 10.10.10.0/29 is a summary, 00:05:09, Null0
C 10.10.10.1/32 is directly connected, Loopback1
C 10.10.10.2/32 is directly connected, Loopback2
C 10.10.10.3/32 is directly connected, Loopback3
C 10.10.10.4/32 is directly connected, Loopback4
C 10.10.10.5/32 is directly connected, Loopback5
C 10.10.10.6/32 is directly connected, Loopback6
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.1/32 is directly connected, Ethernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/20] via 12.12.12.2, 00:17:47, Ethernet0/0
Untuk menghapus Null0 konfigurasikan perintah dibawah ini kemudian cek kembali table routingnya dan pastikan Null0 hilang
R1(config)#router ospf 1
R1(config-router)#no discard-route external

R1(config-router)#do sho 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/11] via 12.12.12.2, 00:00:31, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/21] via 12.12.12.2, 00:00:31, Ethernet0/0
10.0.0.0/32 is subnetted, 6 subnets
C 10.10.10.1 is directly connected, Loopback1
C 10.10.10.2 is directly connected, Loopback2
C 10.10.10.3 is directly connected, Loopback3
C 10.10.10.4 is directly connected, Loopback4
C 10.10.10.5 is directly connected, Loopback5
C 10.10.10.6 is directly connected, Loopback6
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/0
L 12.12.12.1/32 is directly connected, Ethernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/20] via 12.12.12.2, 00:00:31, Ethernet0/0