Senin, 27 Februari 2017

Lab 129 - Basic OSPF in Juniper

Lanjut seri Juniper nya yaaa.. sekarang gilirannya OSPF nih buat kita hajar di Juniper.. langsung aja kali ya.. kita akan pake topologi ini yaa

O yaaa.. disini kita akan pake logical system ya.. masih ada yang belum tau apa itu logical system di juniper?? monggo dibaca artikel sebelumnya dulu ya tentang Logical System di Juniper

Oke.. saya akan langsung tunjuikkin konfigurasinya yaa... berikut konfigurasi untuk logical system R1
[edit] root# run show configuration logical-systems R1 interfaces { em0 { unit 12 { vlan-id 12; family inet { address 12.12.12.1/24; } } } lo0 { unit 1 { family inet { address 1.1.1.1/32; } } } }
Berikut konfigurasi logical system R2
[edit] root# run show configuration logical-systems R2 interfaces { em1 { unit 12 { vlan-id 12; family inet { address 12.12.12.2/24; } } unit 23 { vlan-id 23; family inet { address 23.23.23.2/24; } } unit 24 { vlan-id 24; family inet { address 24.24.24.2/24; } } } lo0 { unit 2 { family inet { address 2.2.2.2/32; } } } }
Berikut konfigurasi logical system R3
[edit] root# run show configuration logical-systems R3 interfaces { em0 { unit 23 { vlan-id 23; family inet { address 23.23.23.3/24; } } unit 34 { vlan-id 34; family inet { address 34.34.34.3/24; } } } lo0 { unit 3 { family inet { address 3.3.3.3/32; } } } }
Berikut konfigurasi logical system R4
[edit] root# run show configuration logical-systems R4 interfaces { em0 { unit 24 { vlan-id 24; family inet { address 24.24.24.4/24; } } } em1 { unit 34 { vlan-id 34; family inet { address 34.34.34.4/24; } } } lo0 { unit 4 { family inet { address 4.4.4.4/32; } } } }
Okeee.. konfigurasi addressing pada seluruh logical system sudah selesai.. o yaaa.. jangan lupa di commit lho ya. hehe

Okeoke langsung aja kita konfig OSPF nya ya.. berikut konfigurasi OSPF di logical system R1
[edit] root# edit logical-systems R1 protocols ospf area 0.0.0.0 [edit logical-systems R1 protocols ospf area 0.0.0.0] root# set interface em0.12 [edit logical-systems R1 protocols ospf area 0.0.0.0] root# set interface lo0.1 passive
Bingung ya baca nya?? kayaknya lebih jelas kalau saya tampilkan show nya deh..
[edit] root# run show configuration logical-systems R1 protocols ospf { area 0.0.0.0 { interface em0.12; interface lo0.1 { passive; } } }
Oke di R1 sudah selesai.. lanjut kita konfig di R2.. saya tampilkan show nya aja yaaa.. untuk perintahnya sama seperti yang di R1 kog..
[edit] root# run show configuration logical-systems R2 protocols ospf { area 0.0.0.0 { interface em1.12; interface em1.24; interface em1.23; interface lo0.2 { passive; } } }
Lanjut berikut konfigurasi di R3
[edit] root# run show configuration logical-systems R3 protocols ospf { area 0.0.0.0 { interface em0.23; interface em0.34; interface lo0.3 { passive; } } }
Terahir kita konfig OSPF di R4 yaa
[edit] root# run show configuration logical-systems R4 protocols ospf { area 0.0.0.0 { interface em0.24; interface em1.34; interface lo0.4 { passive; } } }
Nah lhooo udah semua.. cepet banget yaa.. hehehe

Untuk pengujian.. kita bisa melihat neighbor tabel dengan perintah berikut
[edit] root# run show ospf neighbor logical-system R2 Address Interface State ID Pri Dead 12.12.12.1 em1.12 Full 1.1.1.1 128 38 23.23.23.3 em1.23 Full 3.3.3.3 128 35 24.24.24.4 em1.24 Full 4.4.4.4 128 37
Oke.. di R2 sudah full semua.. R2 sudah adjacency dengan ketiga router.. kita coba lihat neighbor tabel di R4 juga yaa
[edit] root# run show ospf neighbor logical-system R4 Address Interface State ID Pri Dead 24.24.24.2 em0.24 Full 2.2.2.2 128 39 34.34.34.3 em1.34 Full 3.3.3.3 128 36
Alhamdulillah R4 juga sudah adjacency dengan R2 dan R3..

Kita juga bisa melihat tabel routing untuk melakukan pengujian.. kita coba cek tabel routing di R1 yaa
[edit] root# run show route logical-system R1 inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[Direct/0] 00:12:04 > via lo0.1 2.2.2.2/32 *[OSPF/10] 00:02:00, metric 1 > to 12.12.12.2 via em0.12 3.3.3.3/32 *[OSPF/10] 00:02:00, metric 2 > to 12.12.12.2 via em0.12 4.4.4.4/32 *[OSPF/10] 00:01:58, metric 2 > to 12.12.12.2 via em0.12 12.12.12.0/24 *[Direct/0] 00:02:50 > via em0.12 12.12.12.1/32 *[Local/0] 00:02:50 Local via em0.12 23.23.23.0/24 *[OSPF/10] 00:02:00, metric 2 > to 12.12.12.2 via em0.12 24.24.24.0/24 *[OSPF/10] 00:02:00, metric 2 > to 12.12.12.2 via em0.12 34.34.34.0/24 *[OSPF/10] 00:02:00, metric 3 > to 12.12.12.2 via em0.12 224.0.0.5/32 *[OSPF/10] 00:07:49, metric 1 MultiRecv
Oke.. R1 sudah memiliki route ke seluruh network ya... wahhh.. sukses nih OSPF nya.. hehehe

Kita coba ping deh biar lebih pasti.. hehe
[edit] root# run ping 2.2.2.2 logical-system R1 count 2 PING 2.2.2.2 (2.2.2.2): 56 data bytes 64 bytes from 2.2.2.2: icmp_seq=0 ttl=64 time=1.377 ms 64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=0.469 ms --- 2.2.2.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.469/0.923/1.377/0.454 ms [edit] root# run ping 3.3.3.3 logical-system R1 count 2 PING 3.3.3.3 (3.3.3.3): 56 data bytes 64 bytes from 3.3.3.3: icmp_seq=0 ttl=63 time=2.200 ms 64 bytes from 3.3.3.3: icmp_seq=1 ttl=63 time=1.118 ms --- 3.3.3.3 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.118/1.659/2.200/0.541 ms [edit] root# run ping 4.4.4.4 logical-system R1 count 2 PING 4.4.4.4 (4.4.4.4): 56 data bytes 64 bytes from 4.4.4.4: icmp_seq=0 ttl=63 time=1.294 ms 64 bytes from 4.4.4.4: icmp_seq=1 ttl=63 time=0.467 ms --- 4.4.4.4 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.467/0.881/1.294/0.413 ms
Alhamdulillah... R1 bisa ping ke IP loopback seluruh router lain ya... oyaaaa kita coba traceroute yaa dari R1 ke ip loopback R4
[edit] root# run traceroute 4.4.4.4 logical-system R1 traceroute to 4.4.4.4 (4.4.4.4), 30 hops max, 40 byte packets 1 12.12.12.2 (12.12.12.2) 0.934 ms 0.796 ms 0.657 ms 2 4.4.4.4 (4.4.4.4) 1.013 ms 0.704 ms 0.636 ms
Oke ... R1 memilih jalur via R2 untuk menjangkau IP loopback R4.. Okeee.. karena konfigurasi OSPF nya sudah jalan.. sampai disini dulu yaa.. sampai jumpa di artikel artikel selanjutnya..

Like the Post? Do share with your Friends.

Tidak ada komentar:

Posting Komentar

Komentar

FeedBack

Jika Anda merasa terbantu dengan artikel dari Coretan Bocah IT, silahkan berlangganan GRATIS via email. Dengan begitu, Anda akan mendapat kiriman artikel setiap ada artikel baru yang terbit di Coretan Bocah IT

Masukkan Email :

IconIconIconFollow Me on Pinterest