Konfigurasi Data Nusantara

JuniperNetworking

Juniper Dynamic Route OSPF Backbone Area (Area 0)

Hi…

Lanjut lagi ya, kali ini kita coba OSPF Area 0 atau Backbone area pada Juniper. Topologi masih sama seperti sebelumnya pada RIP.

Seperti biasa, pertama kita set IP pada masing masing interface di router

Juniper1

set interfaces em0 unit 0 family inet address 10.0.0.1/24
set interfaces em4 unit 0 family inet address 192.168.1.1/24

Juniper2

set interfaces em0 unit 0 family inet address 10.0.0.2/24
set interfaces em4 unit 0 family inet address 192.168.2.1/24

Selanjut nya tinggal kita aktifkan protocol ospf nya pada Juniper1 dan Juniper2

set protocols ospf area 0.0.0.0 interface all

Untuk mengetahui, protocol ospf sudah running atau belum, kita verifikasi

Juniper1

root> show route

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.0/24 *[Direct/0] 00:03:40
> via em0.0
10.0.0.1/32 *[Local/0] 00:03:40
Local via em0.0
192.168.1.0/24 *[Direct/0] 00:03:40
> via em4.0
192.168.1.1/32 *[Local/0] 00:03:40
Local via em4.0
192.168.2.0/24 *[OSPF/10] 00:02:29, metric 2
> to 10.0.0.2 via em0.0
224.0.0.5/32 *[OSPF/10] 00:03:40, metric 1
MultiRecv

root> show ospf interface
Interface State Area DR ID BDR ID Nbrs
em0.0 BDR 0.0.0.0 10.0.0.2 10.0.0.1 1
em4.0 DR 0.0.0.0 10.0.0.1 0.0.0.0 0

root> show ospf neighbor
Address Interface State ID Pri Dead
10.0.0.2 em0.0 Full 10.0.0.2 128 36

root> show route protocol ospf

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

192.168.2.0/24 *[OSPF/10] 00:02:48, metric 2
> to 10.0.0.2 via em0.0
224.0.0.5/32 *[OSPF/10] 00:03:59, metric 1
MultiRecv

Juniper2

root> show route

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.0.0.0/24 *[Direct/0] 00:04:15
> via em0.0
10.0.0.2/32 *[Local/0] 00:04:15
Local via em0.0
192.168.1.0/24 *[OSPF/10] 00:03:24, metric 2
> to 10.0.0.1 via em0.0
192.168.2.0/24 *[Direct/0] 00:04:14
> via em4.0
192.168.2.1/32 *[Local/0] 00:04:14
Local via em4.0
224.0.0.5/32 *[OSPF/10] 00:04:15, metric 1
MultiRecv

root> show ospf interface
Interface State Area DR ID BDR ID Nbrs
em0.0 DR 0.0.0.0 10.0.0.2 10.0.0.1 1
em4.0 DR 0.0.0.0 10.0.0.2 0.0.0.0 0

root> show ospf neighbor
Address Interface State ID Pri Dead
10.0.0.1 em0.0 Full 10.0.0.1 128 37

root> show route protocol ospf

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

192.168.1.0/24 *[OSPF/10] 00:03:45, metric 2
> to 10.0.0.1 via em0.0
224.0.0.5/32 *[OSPF/10] 00:04:36, metric 1
MultiRecv

Dan terakhir, silahkan coba ping dari PC1 ke PC2 dan sebaliknya

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.