{"id":678,"date":"2024-08-04T15:52:00","date_gmt":"2024-08-04T20:52:00","guid":{"rendered":"https:\/\/carminebufano.com\/?p=678"},"modified":"2026-05-21T18:50:22","modified_gmt":"2026-05-21T22:50:22","slug":"ospf-on-mikrotik-routeros-v7-15-x","status":"publish","type":"post","link":"https:\/\/carminebufano.com\/index.php\/2024\/08\/04\/ospf-on-mikrotik-routeros-v7-15-x\/","title":{"rendered":"OSPF on Mikrotik RouterOS v7.15.x Notes, Examples, Diagrams"},"content":{"rendered":"\n<aside class=\"post-citation-badge\" style=\"border-left:4px solid #3498db; background:rgba(52,152,219,0.08); padding:0.85rem 1.1rem; margin:0 0 1.75rem 0; font-size:0.95em; border-radius:0 6px 6px 0; line-height:1.55;\">\n  <strong>Cited in academic research:<\/strong> This post is Reference [9] in Patricio, Gurat, Tiongson, Danguilan, Wais, and Rosini, <a href=\"https:\/\/pubs.sciepub.com\/jcsa\/14\/1\/1\/index.html\" rel=\"external noopener\" target=\"_blank\"><em>Revolutionizing Multi-Campus Communication: A Next-Generation OSPF-Based Network Design for NVSU&#8217;s Distributed Learning Environment<\/em><\/a>, <em>Journal of Computer Sciences and Applications<\/em>, 14(1):1&ndash;7 (2026).\n<\/aside>\n\n\n\n<p><strong><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">This content is for advanced users and consists of personal notes.<\/mark><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Make sure all the interfaces and\/or bridges that need IP addresses, have them.<\/li>\n\n\n\n<li>Make the loopback interface. This is just a bridge that is not connected to anything.\n<ul class=\"wp-block-list\">\n<li>\/interface bridge<\/li>\n\n\n\n<li>add name=OSPF-01<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Give the loopback interface an IP address that is unique.  \n<ul class=\"wp-block-list\">\n<li>Using the loopback with a unique IP won&#8217;t let the router go down if a physical interface fails.<\/li>\n\n\n\n<li>\/ip address<\/li>\n\n\n\n<li>add address=172.16.128.1 interface=OSPF-01 network=172.16.128.1<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Configure the Router ID\n<ul class=\"wp-block-list\">\n<li>\/routing\/id<\/li>\n\n\n\n<li>add disabled=no id=172.16.128.1 name=OSPF-01 select-dynamic-id= <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Create the OSPF instance. \n<ul class=\"wp-block-list\">\n<li>\/routing ospf instance<\/li>\n\n\n\n<li>add name=OSPF-01 originate-default=always router-id=OSPF-01<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Create the OSPF area\n<ul class=\"wp-block-list\">\n<li>\/routing ospf area<\/li>\n\n\n\n<li>add instance=OSPF-01 name=Backbone<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Build a template for each interface that you want to be included. Can be bridges and\/or interfaces.\n<ul class=\"wp-block-list\">\n<li>\/routing ospf interface-template<\/li>\n\n\n\n<li>add area=Backbone interfaces=ospfbr01 networks=172.16.128.1\/32 type=passive<\/li>\n\n\n\n<li>add area=Backbone interfaces=ether3 networks=192.168.1.0\/24 type=ptp<\/li>\n\n\n\n<li>add area=                 interfaces=a-bridge networks=10.0.20.0\/24 type=ptp<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>You should do this on both routers (simple example) with the correct IPs for your situation<\/p>\n\n\n\n<p>Thats it it should be working. You can check by looking at the routes: \/ip routes print<\/p>\n\n\n\n<p>OR<\/p>\n\n\n\n<p>\/routing ospf neighbor print<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OSPF on Mikrotik RouterOS v7.15.x<\/p>\n","protected":false},"author":2,"featured_media":683,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":true},"categories":[3,6,8,160,93,1,12,15],"tags":[],"class_list":["post-678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements","category-digital-ocean","category-linux","category-mikrotik","category-network-simulator","category-uncategorized","category-vmware","category-walkthroughs"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/08\/OSPF_Network_Configuration.jpg?fit=1792%2C1024&ssl=1","jetpack-related-posts":[{"id":94,"url":"https:\/\/carminebufano.com\/index.php\/2014\/09\/04\/make-mikrotik-routeros-and-much-much-work-on-citrix-xenserver\/","url_meta":{"origin":678,"position":0},"title":"Make Mikrotik RouterOS and much, much more work on Citrix Xenserver","author":"Carmine Bufano","date":"September 4, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Citrix Xenserver&quot;","block_context":{"text":"Citrix Xenserver","link":"https:\/\/carminebufano.com\/index.php\/category\/citrix-xenserver\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":698,"url":"https:\/\/carminebufano.com\/index.php\/2024\/09\/20\/quality-free-resources-to-learn-programming\/","url_meta":{"origin":678,"position":1},"title":"Top 3 Online Resources to Learn Coding","author":"Carmine Bufano","date":"September 20, 2024","format":false,"excerpt":"Learn to write your own applications for fun and profit. Here are quality free resources online that I can personally vouch for. I get nothing for suggesting these websites.","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/carminebufano.com\/index.php\/category\/announcements\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":570,"url":"https:\/\/carminebufano.com\/index.php\/2022\/08\/21\/quick-notes-on-creating-static-vxlan-vtep-on-dell-emc-network-os9-14\/","url_meta":{"origin":678,"position":2},"title":"Quick Notes on Creating Static VXLAN vtep on Dell EMC Network OS9.14","author":"Carmine Bufano","date":"August 21, 2022","format":false,"excerpt":"Both VLT peers should be configured with the same local VTEP IP address. One would complete the usual VLT config on both peers. An identical loopback IP will be configured on both peers, to serve as the Anycast IP.Other than that, there will be the usual VXLAn config[vxlan-instance xx staticlocal-vtep-ip\u2026","rel":"","context":"In &quot;Walkthroughs&quot;","block_context":{"text":"Walkthroughs","link":"https:\/\/carminebufano.com\/index.php\/category\/walkthroughs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68,"url":"https:\/\/carminebufano.com\/index.php\/2014\/08\/26\/how-to-create-a-virtual-network-that-spans-every-project-in-your-openstack-based-cloud\/","url_meta":{"origin":678,"position":3},"title":"How to create a virtual network that spans every project in your Openstack based cloud.","author":"Carmine Bufano","date":"August 26, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":538,"url":"https:\/\/carminebufano.com\/index.php\/2022\/05\/20\/how-to-rename-a-zerotier-one-interface-from-zt-to-eth0-or-eth1-or-anything-you-want\/","url_meta":{"origin":678,"position":4},"title":"How to rename a ZeroTier One  interface from zt\u2026 to eth0 or eth1 or anything you want!","author":"Carmine Bufano","date":"May 20, 2022","format":false,"excerpt":"Below is the original post that walks you through the steps to rename ZeroTier interfaces. Shortly after I posted this, Grant Limberg from ZeroTier posted something that makes a lot of sense. Changing the name of the interface; more specifically removing the \u201czt\u201d from the interface will have some very\u2026","rel":"","context":"In &quot;one&quot;","block_context":{"text":"one","link":"https:\/\/carminebufano.com\/index.php\/category\/one\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":733,"url":"https:\/\/carminebufano.com\/index.php\/2024\/12\/30\/automating-vmware-network-changes-how-i-turned-hours-of-clicking-into-a-5-minute-powercli-script\/","url_meta":{"origin":678,"position":5},"title":"Automating VMware Network Changes: How I Turned Hours of Clicking into a 5-Minute PowerCLI Script","author":"Carmine Bufano","date":"December 30, 2024","format":false,"excerpt":"Have you ever stared down the barrel of endless repetitive clicks in VMware vSphere, knowing you're in for hours of mindless work? Recently, I faced a scenario where I needed to update hundreds of virtual NICs across just as many virtual machines. Manual changes would have been soul-crushing, so I\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/carminebufano.com\/index.php\/category\/programming\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/12\/3DvSphere-1.jpg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/12\/3DvSphere-1.jpg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/12\/3DvSphere-1.jpg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/12\/3DvSphere-1.jpg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p70MUT-aW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/comments?post=678"}],"version-history":[{"count":12,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/678\/revisions"}],"predecessor-version":[{"id":901,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/678\/revisions\/901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media\/683"}],"wp:attachment":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media?parent=678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/categories?post=678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/tags?post=678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}