Ini hanya mau menyambung tulisan ane sbelumnya yang ada di blog ini, klo mau cek dsini, jadi kira2 tau kan apa yang akan kita bahas,? klo omongin maslah redistribute itu adalah ada istilah cisco, jadi ane pinjam dlu ye,,,biar familiar gtu,,,klo di junos istilahnya routing policy. Oke kita review kembali tulisan seblumnya bahwa semua interface yang ada di router ospf, kita masukin semua ke protokol ospf, nah kli ini tidak demikian, kita hanya perlu memasukkan interface p2p router ospf, misal anda memiliki interface local area network, interface loopbak or alias interface yang base L3 nya di router bisa kita lakukan advertise via protokol direct dengan meredistribute ke ospf, atau dalam junos bisa kita export ke protokol ospf. Jadi secara praktisnya, jika anda menambah l3 di router anda, maka akan secara otomatis ke advertise ke ospf interface tersebut. Untuk lebih jelasnya mari kita lihat step berikut,.
Cek protokol direct di junos.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | root@vMX-1> show route protocol direct logical-system r1 inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32         *[Direct/0] 00:02:10                     > via lo0.1 10.10.10.0/24      *[Direct/0] 00:01:13                     > via ge-0/0/1.10 10.12.12.0/24      *[Direct/0] 00:01:13                     > via ge-0/0/1.12 10.13.13.0/24      *[Direct/0] 00:01:13                     > via ge-0/0/1.13 | 
nah, coba lihat network direct 🙂 di R1 nya,..hehe..nah R1 agar bisa ngobrol dengan R2 dan R3 apa yang perlu anda lakukan? anda hanya perlu kasih tau potokol ospf nya interface mana yang konek ke router tersebut,. terus interface yang misal ada interface buat lan, atau yang ke network data center, perlu di advertise ke ospf gk? pada tulisan kali ini anda tidak perlu melakukannya, karena anda hanya cukup export protkol direct ini ke ospf., nah berikut yang harus anda lakukan pertama adalah membuat policy baru dengan untuk protokol direct seperti berikut:
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | R1: set policy-options policy-statement export_direct term 1 from protocol direct set policy-options policy-statement export_direct term 1 then accept R2: set policy-options policy-statement export_direct term 1 from protocol direct set policy-options policy-statement export_direct term 1 then accept R3: set policy-options policy-statement export_direct term 1 from protocol direct set policy-options policy-statement export_direct term 1 then accept R4: set policy-options policy-statement export_direct term 1 from protocol direct set policy-options policy-statement export_direct term 1 then accept | 
Nah anda tinggal export policy nya ke dalam ospf atau di cisco itu di redistribute ke ospf.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | R1: set protocols ospf export export_direct set protocols ospf area 0.0.0.0 interface ge-0/0/1.12 set protocols ospf area 0.0.0.0 interface ge-0/0/1.13 R2: set protocols ospf export export_direct set protocols ospf area 0.0.0.0 interface ge-0/0/2.12 set protocols ospf area 0.0.0.0 interface ge-0/0/2.24 R3: set protocols ospf export export_direct set protocols ospf area 0.0.0.0 interface ge-0/0/3.13 set protocols ospf area 0.0.0.0 interface ge-0/0/3.34 R4: set protocols ospf export export_direct set protocols ospf area 0.0.0.0 interface ge-0/0/4.24 set protocols ospf area 0.0.0.0 interface ge-0/0/4.34 | 
Pada konfigurasi di atas, anda cukup advertise interface yang koneksi antar router, bila router tersebut menggunakan ospf. skrang mari kita cek hasilnya,
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | root@vMX-1# run show route protocol ospf logical-system r2 inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32         *[OSPF/150] 00:09:02, metric 0, tag 0                     > to 10.12.12.1 via ge-0/0/2.12 3.3.3.3/32         *[OSPF/150] 00:09:02, metric 0, tag 0                     > to 10.12.12.1 via ge-0/0/2.12                       to 10.24.24.4 via ge-0/0/2.24 4.4.4.4/32         *[OSPF/150] 00:09:02, metric 0, tag 0                     > to 10.24.24.4 via ge-0/0/2.24 10.10.10.0/24      *[OSPF/150] 00:09:02, metric 0, tag 0                     > to 10.12.12.1 via ge-0/0/2.12 10.13.13.0/24      *[OSPF/10] 00:22:21, metric 2                     > to 10.12.12.1 via ge-0/0/2.12 10.34.34.0/24      *[OSPF/10] 00:22:32, metric 2                     > to 10.24.24.4 via ge-0/0/2.24 224.0.0.5/32       *[OSPF/10] 00:24:28, metric 1                       MultiRecv | 
Nah, bisa anda cek di table route ditas, bahwa interface loopback yang ada dimasing2 router, ke advertise juga ke ospf.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | root@vMX-1# run show ospf database logical-system r2     OSPF database, Area 0.0.0.0  Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len Router   1.1.1.1          1.1.1.1          0x80000007   653  0x22 0x750a  48 Router  *2.2.2.2          2.2.2.2          0x80000007   652  0x22 0x49fe  48 Router   3.3.3.3          3.3.3.3          0x80000007   654  0x22 0xe030  48 Router   4.4.4.4          4.4.4.4          0x80000006   653  0x22 0x9842  48 Network *10.12.12.2       2.2.2.2          0x80000001  1458  0x22 0x2ed3  32 Network  10.13.13.3       3.3.3.3          0x80000001  1465  0x22 0x11e5  32 Network  10.24.24.4       4.4.4.4          0x80000002   342  0x22 0x3d95  32 Network  10.34.34.4       4.4.4.4          0x80000001  1469  0x22 0x8a31  32     OSPF AS SCOPE link state database  Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len Extern   1.1.1.1          1.1.1.1          0x80000001   653  0x22 0xb4f5  36 Extern  *2.2.2.2          2.2.2.2          0x80000001   652  0x22 0x683a  36 Extern   3.3.3.3          3.3.3.3          0x80000001   654  0x22 0x1c7e  36 Extern   4.4.4.4          4.4.4.4          0x80000001   653  0x22 0xcfc2  36 Extern   10.10.10.0       1.1.1.1          0x80000001   653  0x22 0x7917  36 | 
Karena modelnya di redistribute, jadi ospf mengenalnya sebgai Extern (external lsa type)
Ok Good Lucy guys…, 🙂
Komentar