{"id":126,"date":"2016-11-07T03:46:26","date_gmt":"2016-11-06T20:46:26","guid":{"rendered":"http:\/\/notes.opikdesign.com\/?p=126"},"modified":"2017-06-04T13:48:46","modified_gmt":"2017-06-04T06:48:46","slug":"implementasi-ospf-routing-untuk-failover-backbond-di-isp","status":"publish","type":"post","link":"https:\/\/notes.opikdesign.com\/index.php\/2016\/11\/07\/networking\/implementasi-ospf-routing-untuk-failover-backbond-di-isp\/","title":{"rendered":"Implementasi OSPF Routing untuk Failover Backbond di ISP"},"content":{"rendered":"<p>Kemarin setelah membahas RIP Routing, satu lagi protocol routing yang msuk dalam klasifikasi Interior Gateway Protocol (IGP) yaitu OSPF.\u00a0Open Shortest Path First atau disingkat dengan OSPF, adalah sebuah protokol Dynamic Routing yang mampu menjaga, mengatur dan mendistribusikan informasi routing antar network dengan mengikuti setiap perubahan jaringan secara dinamis. Pada OSPF dikenal sebuah istilah Autonomus System (AS) yaitu sebuah gabungan dari beberapa jaringan yang sifatnya routing dan memiliki kesamaan metode serta policy pengaturan network, yang semuanya dapat dikendalikan oleh network administrator. Dan memang kebanyakan fitur ini diguakan untuk management dalam skala jaringan yang sangat besar. Oleh karena itu untuk mempermudah penambahan informasi routing dan meminimalisir kesalahan distribusi informasi routing, maka OSPF bisa menjadi sebuah solusi.<\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<hr \/>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-140 aligncenter\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/lab-ospf-1-300x230.jpg?resize=525%2C402\" alt=\"lab-ospf-rev\" width=\"525\" height=\"402\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/lab-ospf-1.jpg?resize=300%2C230&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/lab-ospf-1.jpg?resize=768%2C588&amp;ssl=1 768w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/lab-ospf-1.jpg?w=774&amp;ssl=1 774w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h2><strong>Config&#8230;.<\/strong><\/h2>\n<p>Pemberian IP disemua interfaces yang terhubung.<\/p>\n<p>R1:<\/p>\n<pre>\/system identity set name=R1\r\n\r\n\/interface ethernet set ether1 name=ether1-inet\r\n\/interface ethernet set ether2 name=ether2-R2\r\n\/interface ethernet set ether3 name=ether3-R3\r\n\r\n\/ip address add address=172.16.1.2\/24 interface=ether1-inet\r\n\/ip address add address=172.16.12.1\/24 interface=ether2-R2\r\n\/ip address add address=172.16.13.1\/24 interface=ether3-R3\r\n\r\n\/ip route add dst-address=0.0.0.0\/0 gateway=172.16.1.1<\/pre>\n<p>&nbsp;<\/p>\n<p>R2:<\/p>\n<pre>\/system identity set name=R2\r\n\r\n\/interface ethernet set ether1 name=ether1-R1\r\n\/interface ethernet set ether2 name=ether2-R3\r\n\/interface ethernet set ether3 name=ether3-Client\r\n\r\n\/ip address add address=172.16.12.2\/24 interface=ether1-R1\r\n\/ip address add address=172.16.23.2\/24 interface=ether2-R3\r\n\/ip address add address=172.16.2.1\/24 interface=ether3-Client<\/pre>\n<p>&nbsp;<\/p>\n<p>R3:<\/p>\n<pre>\/system identity set name=R3\r\n\r\n\/interface ethernet set ether1 name=ether1-R1\r\n\/interface ethernet set ether2 name=ether2-R2\r\n\/interface ethernet set ether3 name=ether3-Client\r\n\r\n\/ip address add address=172.16.13.3\/24 interface=ether1-R1\r\n\/ip address add address=172.16.23.3\/24 interface=ether2-R2\r\n\/ip address add address=172.16.3.1\/24 interface=ether3-Client<\/pre>\n<p>&nbsp;<\/p>\n<p>Buat interfaces Loopback dan beri IP, kemudian tentukan Router ID pada OSPF dengan IP Loopback dan untuk Redistribute Default diberi Always, jangan lupa juga tentukan network pada area backbound.<\/p>\n<p>R1:<\/p>\n<pre>\/interface bridge add name=loop\r\n\/ip address add address=10.0.0.1\/32 interface=loop\r\n\/routing ospf instance set default router-id=10.0.0.1 distribute-default=always-as-type-1\r\n\/routing ospf network add network=172.16.13.0\/24 area=backbone                       \r\n\/routing ospf network add network=172.16.12.0\/24 area=backbone\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>R2:<\/p>\n<pre>\/interface bridge add name=loop\r\n\/ip address add address=10.0.0.2\/32 interface=loop\r\n\/routing ospf instance set default router-id=10.0.0.2 distribute-default=always-as-type-1\r\n\/routing ospf network add network=172.16.12.0\/24 area=backbone                       \r\n\/routing ospf network add network=172.16.23.0\/24 area=backbone\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>R3:<\/p>\n<pre>\/interface bridge add name=loop\r\n\/ip address add address=10.0.0.3\/32 interface=loop\r\n\/routing ospf instance set default router-id=10.0.0.3 distribute-default=always-as-type-1\r\n\/routing ospf network add network=172.16.13.0\/24 area=backbone                       \r\n\/routing ospf network add network=172.16.23.0\/24 area=backbone\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Buat area baru; area 1 di R1 dengan network dan interfaces-nya begitu juga untuk area 2 dan area 3.<\/p>\n<p>R1:<\/p>\n<pre>\/routing ospf area add name=area1 area-id=0.0.0.1\r\n\/routing ospf network add network=172.16.1.0\/24 area=area1\r\n\/routing ospf interface add interface=ether1-inet\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>R2:<\/p>\n<pre>\/routing ospf area add name=area2 area-id=0.0.0.2\r\n\/routing ospf network add network=172.16.2.0\/24 area=area2\r\n\/routing ospf interface add interface=ether3-Client\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>R3:<\/p>\n<pre>\/routing ospf area add name=area3 area-id=0.0.0.3\r\n\/routing ospf network add network=172.16.3.0\/24 area=area3\r\n\/routing ospf interface add interface=ether3-Client\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Agar default gateway untuk ke arah internet ditambahkan pada R2 dan R3 oleh OSPF maka tambahkan Area Range di R1 dan ditambahkan filter untuk discard routing yang salah karena penambahan area range<\/p>\n<p>R1:<\/p>\n<pre>\/routing ospf area range add area=area1 range=0.0.0.0\/0\r\n\/routing filter add chain=ospf-in distance=!110 action=discard<\/pre>\n<p>&nbsp;<\/p>\n<h2><strong>Check hasil config&#8230;.<\/strong><\/h2>\n<p>Dengan melihat masing-masing routing table di tiap router; ADo (Active Dynamic OSPF) kondisi link active dan Do (Dynamic OSPF) artinya routing no active namun ketika ke tujuan yang sama link terputus maka Do bisa menjadi ADo. Distance untuk OSPF adalah 110.<\/p>\n<p>R1:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-148\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R1-ospf-300x121.jpg?resize=471%2C190\" alt=\"r1-ospf\" width=\"471\" height=\"190\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R1-ospf.jpg?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R1-ospf.jpg?w=602&amp;ssl=1 602w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<p>R2:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-149\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R2-ospf-300x121.jpg?resize=469%2C189\" alt=\"r2-ospf\" width=\"469\" height=\"189\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R2-ospf.jpg?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R2-ospf.jpg?w=603&amp;ssl=1 603w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/p>\n<p>R3:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-150\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R3-ospf-300x119.jpg?resize=469%2C186\" alt=\"r3-ospf\" width=\"469\" height=\"186\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R3-ospf.jpg?resize=300%2C119&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/R3-ospf.jpg?w=601&amp;ssl=1 601w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Testing dan\u00a0Uji Coba Failover link&#8230;.<\/strong><\/h2>\n<p>Dalam kondisi link normal maka OSPF akan mengarahkan ke router terdekat sesuai ID-nya, perhatikan ping dan traceroute tersebut.<\/p>\n<p>Client di belakang R2<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-153\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji1-r2-300x161.jpg?resize=525%2C282\" alt=\"ospf-uji1-r2\" width=\"525\" height=\"282\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji1-r2.jpg?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji1-r2.jpg?w=647&amp;ssl=1 647w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>Client di belakang R3<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-155\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji1-r3-300x161.jpg?resize=525%2C282\" alt=\"ospf-uji1-r3\" width=\"525\" height=\"282\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji1-r3.jpg?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji1-r3.jpg?w=647&amp;ssl=1 647w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Kasus link utama R3 terputuh dan otomatis router R3 memindahkan jalur untuk ke internet melewati R2 dahulu baru melewati R1. Perhatikan sebagai berikut.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-157\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2-300x230.jpg?resize=525%2C403\" alt=\"ospf-uji2\" width=\"525\" height=\"403\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2.jpg?resize=300%2C230&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2.jpg?resize=768%2C588&amp;ssl=1 768w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2.jpg?w=774&amp;ssl=1 774w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>hasil test&#8230;<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-158\" src=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2-r3-300x238.jpg?resize=525%2C416\" alt=\"ospf-uji2-r3\" width=\"525\" height=\"416\" srcset=\"https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2-r3.jpg?resize=300%2C238&amp;ssl=1 300w, https:\/\/i0.wp.com\/notes.opikdesign.com\/wp-content\/uploads\/2016\/11\/ospf-uji2-r3.jpg?w=514&amp;ssl=1 514w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kemarin setelah membahas RIP Routing, satu lagi protocol routing yang msuk dalam klasifikasi Interior Gateway Protocol (IGP) yaitu OSPF.\u00a0Open Shortest Path First atau disingkat dengan OSPF, adalah sebuah protokol Dynamic Routing yang mampu menjaga, mengatur dan mendistribusikan informasi routing antar network dengan mengikuti setiap perubahan jaringan secara dinamis. Pada OSPF dikenal sebuah istilah Autonomus System &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/notes.opikdesign.com\/index.php\/2016\/11\/07\/networking\/implementasi-ospf-routing-untuk-failover-backbond-di-isp\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Implementasi OSPF Routing untuk Failover Backbond di ISP&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6,3,5],"tags":[40,16,39,38],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-mikrotik","category-networking","category-routing","tag-dynamic-routing","tag-mikrotik","tag-ospf","tag-routing"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":27,"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/posts\/126\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.opikdesign.com\/index.php\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}