{"id":5202,"date":"2024-09-09T06:38:13","date_gmt":"2024-09-09T11:38:13","guid":{"rendered":"http:\/\/109.199.106.156\/~indeni\/wp\/?p=1661"},"modified":"2024-09-09T06:38:13","modified_gmt":"2024-09-09T11:38:13","slug":"ospf-virtual-link-configuration","status":"publish","type":"post","link":"https:\/\/ddi.mohflo.net\/index.php\/2024\/09\/09\/ospf-virtual-link-configuration\/","title":{"rendered":"OSPF Virtual Link Configuration"},"content":{"rendered":"<p><a target=\"_blank\" href=\"https:\/\/i0.wp.com\/indeni.com\/wp-content\/uploads\/2016\/09\/bigstock-Data-84292361.jpg?ssl=1\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3507 img-fluid format-jpg v-media-processed img-fluid format-jpg v-media-processed img-fluid format-jpg v-media-processed\" src=\"https:\/\/i0.wp.com\/indeni.com\/wp-content\/uploads\/2016\/09\/bigstock-Data-84292361.jpg?resize=640%2C309&#038;ssl=1\" alt=\"Data connections and led lights in an industrial building grain visable in areas and colours removed from certain images to enhance them., Low aperture used to create a shallow DOF on on connections or lights\" width=\"640\" height=\"309\" data-context=\"container\" sizes=\"auto, 100vw\" data-custom-sizes=\"1\" loading=\"lazy\"><\/a> <\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50734\">We all know about OSPF (Open Shortest Path First) protocol\u2013a fast link state protocol that is a go-to IGP (Interior Gateway Protocol) routing in large enterprises. It is also an open source protocol.<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50737\">OSPF calculates shortest path for each route using <a target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Dijkstra's_algorithm\" rel=\"noopener\">Dijkstra\u2019s algorithm<\/a>. It uses area 0 as a backbone and every other area must be directly connected to it. There are cases in which we need to circumvent this rule and connect the OSPF area <em>through the transit area<\/em> to area 0. This occurs, for example, when the OSPF area has no direct connection to the backbone.<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50748\">The configuration solution is an OSPF virtual link.<\/p>\n<h2 id=\"yui_3_17_2_1_1425677470632_50753\">Let\u2019s look at the following example:<\/h2>\n<p id=\"yui_3_17_2_1_1425677470632_50758\">R3 has no physical connection to the backbone, which means it cannot get routing updates. We will create an OSPF virtual link through R1 and R2 to connect R3 to area 0 by going through transit area AS100.<\/p>\n<p>OSPF Configuration Virtual Link example:<\/p>\n<h4 id=\"yui_3_17_2_1_1425677470632_50768\">Follow these steps to configure an OSPF virtual link:<\/h4>\n<ul id=\"yui_3_17_2_1_1425677470632_50771\">\n<li>Configure OSPF<\/li>\n<\/ul>\n<p id=\"yui_3_17_2_1_1425677470632_50775\"><strong>R1:<\/strong><\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50779\">router ospf 1 log-adjacency-changes network 192.168.1.0 0.0.0.255 area 0 network 10.0.0.0 0.0.0.255 area 100<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50784\"><strong>R2:<\/strong><\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50788\">router ospf 1 log-adjacency-changes network 10.0.0.0 0.0.0.255 area 100 network 172.16.0.0 0.0.0.255 area 200<\/p>\n<ul id=\"yui_3_17_2_1_1425677470632_50793\">\n<li>Apply a virtual link with the following commands:<\/li>\n<\/ul>\n<p id=\"yui_3_17_2_1_1425677470632_50797\"><strong>R1:<\/strong><\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50801\">area 1 virtual-link 10.0.0.1<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50806\"><strong>R2:<\/strong><\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50810\">area 1 virtual-link 10.0.0.2<\/p>\n<ul id=\"yui_3_17_2_1_1425677470632_50815\">\n<li>To verify the virtual link, use the following command:<\/li>\n<\/ul>\n<p id=\"yui_3_17_2_1_1425677470632_50819\">show ip ospf virtual-links<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50824\">This is the output you should get:<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50829\"><strong>R1#<\/strong><\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50833\">show ip ospf virtual-links<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50837\">Virtual Link OSPF_VL0 to router 10.0.0.2 is up<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50841\">Run as demand circuit DoNotAge LSA allowed.<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50846\">Transit area 100, via interface FastEthernet0\/0, Cost of using 1 Transmit Delay is 1 sec, State POINT_TO_POINT,<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50850\">Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:06 Adjacency State FULL (Hello suppressed) Index 1\/2, retransmission queue length 0, number of retransmision 0 First 0x0(0)\/0x0(0) Next 0x0(0)\/0x0(0) Last retransmission scan length is 0, maximum is 0 Last retransmission scan time is 0 msec, maximum is 0 msec<\/p>\n<p id=\"yui_3_17_2_1_1425677470632_50856\"><strong>That\u2019s it! Now R3 will be able to receive routing updates from area 0 and you will have a converged network.<\/strong><\/p>\n<p><a href=\"https:\/\/bluecatnetworks.com\/thought-leadership\/ospf-virtual-link\/\">BlueCat Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all know about OSPF (Open Shortest Path First) protocol\u2013a<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2643,2631],"tags":[2644,2633],"class_list":["post-5202","post","type-post","status-publish","format-standard","hentry","category-ospf-configuration","category-thought-leadership","tag-ospf-configuration","tag-thought-leadership"],"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","chromenews-featured":"","chromenews-large":"","chromenews-medium":""},"author_info":{"display_name":"Blue Cat","author_link":"https:\/\/ddi.mohflo.net\/index.php\/author\/bluecat\/"},"category_info":"<a href=\"https:\/\/ddi.mohflo.net\/index.php\/category\/ospf-configuration\/\" rel=\"category tag\">OSPF Configuration<\/a> <a href=\"https:\/\/ddi.mohflo.net\/index.php\/category\/thought-leadership\/\" rel=\"category tag\">Thought Leadership<\/a>","tag_info":"Thought Leadership","comment_count":"0","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/5202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/comments?post=5202"}],"version-history":[{"count":0,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/5202\/revisions"}],"wp:attachment":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media?parent=5202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/categories?post=5202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/tags?post=5202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}