Escolar Documentos
Profissional Documentos
Cultura Documentos
-----------------------------------------------------------
Topology yang digunakan adalah sebagai berikut :
-----------------------------------------------------------
-----------------------------------------------------------
On multiaccess network, OSPF elects a DR to be the collection and distribution point for LSA's
sent and received. A BDR is also elected in case the DR fails. All other router becomes DRothers.
How do the DR and BDR get elected?
1. DR: Router with the highest OSPF interface priority
(The Priority is set to 128 by default by JUNOS software)
2. BDR: Router with second highest OSPF interface priority
3. If OSPF interface priorities are equal, the highest router ID is used to break the tie.
-----------------------------------------------------------
contoh konfigurasi:
-----------------------------------------------------------
Router cnc1
-----------------------------------------------------------
[edit interfaces]
root@cnc1# show
fxp0 {
unit 0 {
family inet {
address 192.168.10.1/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.1/32;
}
}
}
[edit interfaces]
root@cnc1#
-----------------------------------------------------------
-----------------------------------------------------------
[edit protocols]
root@cnc1# show
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fxp0.0 {
}
}
}
[edit protocols]
root@cnc1#
-----------------------------------------------------------
[edit routing-options]
root@cnc1# show
router-id 1.1.1.1;
[edit routing-options]
root@cnc1#
-----------------------------------------------------------
Router cnc2
-----------------------------------------------------------
[edit interfaces]
root@cnc2# show
fxp0 {
unit 0 {
family inet {
address 192.168.10.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 2.2.2.2/32;
}
}
}
[edit interfaces]
root@cnc2#
-----------------------------------------------------------
[edit protocols]
root@cnc2# show
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fxp0.0 {
}
}
}
[edit protocols]
root@cnc2#
-----------------------------------------------------------
[edit routing-options]
root@cnc2# show
router-id 2.2.2.2;
[edit routing-options]
root@cnc2#
-----------------------------------------------------------
-----------------------------------------------------------
Router cnc3
-----------------------------------------------------------
[edit interfaces]
root# show
fxp0 {
unit 0 {
family inet {
address 192.168.10.3/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 3.3.3.3/32;
}
}
}
[edit interfaces]
root#
-----------------------------------------------------------
[edit protocols]
root@cnc3# show
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fxp0.0;
}
}
[edit protocols]
root@cnc3#
-----------------------------------------------------------
[edit routing-options]
root@cnc3# show
router-id 3.3.3.3;
[edit routing-options]
root@cnc3#
-----------------------------------------------------------
Dengan konfigurasi diatas dapat disimpulkan sementara, bahwa yang akan menjadi DR adalah Router
cnc3 karena memiliki router ID yang paling tinggi, dan yang menjadi BDR adalah Router cnc2.
-----------------------------------------------------------
How to check (OSPF Adjacency and Neighbors)
-----------------------------------------------------------
[edit]
root@cnc1# run show ospf neighbor
Address Interface State ID Pri Dead
192.168.10.3 fxp0.0 Full 3.3.3.3 128 33
192.168.10.2 fxp0.0 Full 2.2.2.2 128 38
[edit]
root@cnc1#
[edit]
root@cnc1# run show ospf interface
Interface State Area DR ID BDR ID Nbrs
fxp0.0 DRother 0.0.0.0 3.3.3.3 2.2.2.2 2
lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0
[edit]
root@cnc1#
-----------------------------------------------------------
-----------------------------------------------------------
[edit]
root@cnc2# run show ospf neighbor
Address Interface State ID Pri Dead
192.168.10.3 fxp0.0 Full 3.3.3.3 128 37
192.168.10.1 fxp0.0 Full 1.1.1.1 128 34
[edit]
root@cnc2#
[edit]
root@cnc2# run show ospf interface
Interface State Area DR ID BDR ID Nbrs
fxp0.0 BDR 0.0.0.0 3.3.3.3 2.2.2.2 2
lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0
[edit]
root@cnc2#
-----------------------------------------------------------
[edit]
root@cnc3# run show ospf neighbor
Address Interface State ID Pri Dead
192.168.10.2 fxp0.0 Full 2.2.2.2 128 33
192.168.10.1 fxp0.0 Full 1.1.1.1 128 32
[edit]
root@cnc3#
[edit]
root@cnc3# run show ospf interface
Interface State Area DR ID BDR ID Nbrs
fxp0.0 DR 0.0.0.0 3.3.3.3 2.2.2.2 2
lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0
[edit]
root@cnc3#
-----------------------------------------------------------
Only DR sends network LSAs (LSA Type 2) to all other routers on the broadcast segment.
-----------------------------------------------------------
[edit]
root@cnc1# run show ospf database network extensive
[edit]
root@cnc1#
-----------------------------------------------------------
-----------------------------------------------------------
[edit]
root@cnc2# run show ospf database network extensive
[edit]
root@cnc2#
-----------------------------------------------------------
[edit]
root@cnc3# run show ospf database network extensive
[edit]
root@cnc3
-----------------------------------------------------------
Sekarang kita akan merubah nilai priority default Router cnc1 dan cnc2, sehingga DR menjadi cnc1
dan BDR adalah cnc2
-----------------------------------------------------------
root#
[edit protocols ospf]
root@cnc1# set area 0 interface fxp0.0 priority 130
[edit]
root@cnc1#
[edit]
root@cnc1# run show ospf neighbor
Address Interface State ID Pri Dead
192.168.10.2 fxp0.0 Full 2.2.2.2 129 30
192.168.10.3 fxp0.0 Full 3.3.3.3 128 35
[edit]
root@cnc1#
-----------------------------------------------------------
-----------------------------------------------------------
edit]
root@cnc2# run show ospf interface
Interface State Area DR ID BDR ID Nbrs
fxp0.0 BDR 0.0.0.0 1.1.1.1 2.2.2.2 2
lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0
[edit]
root@cnc2#
[edit]
root@cnc2# run show ospf neighbor
Address Interface State ID Pri Dead
192.168.10.1 fxp0.0 Full 1.1.1.1 130 35
192.168.10.3 fxp0.0 Full 3.3.3.3 128 33
[edit]
root@cnc2#
-----------------------------------------------------------
[edit]
root@cnc3# run show ospf interface
Interface State Area DR ID BDR ID Nbrs
fxp0.0 DRother 0.0.0.0 1.1.1.1 2.2.2.2 2
lo0.0 DRother 0.0.0.0 0.0.0.0 0.0.0.0 0
[edit]
root@cnc3#
[edit]
root@cnc3# run show ospf neighbor
Address Interface State ID Pri Dead
192.168.10.1 fxp0.0 Full 1.1.1.1 130 34
192.168.10.2 fxp0.0 Full 2.2.2.2 129 36
[edit]
root@cnc3#
-----------------------------------------------------------
Only DR sends network LSAs (LSA Type 2) to all other routers on the broadcast segment.
-----------------------------------------------------------
[edit]
root@cnc1# run show ospf database network extensive
[edit]
root@cnc1#
-----------------------------------------------------------
-----------------------------------------------------------
[edit]
root@cnc2# run show ospf database network extensive
[edit]
root@cnc2#
-----------------------------------------------------------
[edit]
root@cnc3# run show ospf database network extensive
[edit]
root@cnc3#
"------------Sekian dulu, semoga bermanfaat----------------"
Ref:
[1]. Junos,OSPF Designated Router.
URL: http://sites.google.com/site/amitsciscozone/home/juniper-junos, (Juli 2010)