{"id":474,"date":"2024-08-02T15:13:14","date_gmt":"2024-08-02T15:13:14","guid":{"rendered":"https:\/\/www.zframez.com\/articles\/?p=474"},"modified":"2024-09-13T05:02:47","modified_gmt":"2024-09-13T05:02:47","slug":"understanding-ospf-redistribution","status":"publish","type":"post","link":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution","title":{"rendered":"Understanding OSPF Redistribution"},"content":{"rendered":"<body>\n<div style=\"background: linear-gradient(to right, #ADD8E6, #8A2BE2); padding: 10px; border-radius: 10px; font-weight: 600; color: black;\">\n  <h3 style=\"text-align: center; margin-top: 0;\">Table of Contents<\/h3>\n  <ul style=\"padding-left: 20px;\">\n    <li><a href=\"#What-is-Route-Redistribution\" style=\"color: black;\">What is Route Redistribution?<\/a><\/li>\n    <li><a href=\"#Redistribution-in-OSPF\" style=\"color: black;\">Redistribution in OSPF<\/a><\/li>\n    <li><a href=\"#How-LSA-4-is-used-in-Redistribution\" style=\"color: black;\">How LSA 4 is used in Redistribution?<\/a><\/li>\n    <li><a href=\"#How-LSA-5-is-Used-in-Redistribution\" style=\"color: black;\">How LSA 5 is Used in Redistribution?<\/a><\/li>\n    <li><a href=\"#What-is-Forwarding-Address-in-LSA-5\" style=\"color: black;\">What is \u201cForwarding Address\u201d in LSA 5?<\/a><\/li>\n    <li><a href=\"#OSPF-E1-and-E2-Routes\" style=\"color: black;\">OSPF E1 and E2 Routes<\/a><\/li>\n    <li><a href=\"#Configuring-Redistribution\" style=\"color: black;\">Configuring Redistribution<\/a><\/li>\n  <\/ul>\n<\/div>\n\n\n\n\n<h1 class=\"wp-block-heading has-x-large-font-size\"><strong>Understanding OSPF Route Redistribution and LSA Types<\/strong><\/h1>\n\n\n\n<p>OSPF (Open Shortest Path First) Redistribution allows different routing protocols or different OSPF instances to share route information effectively. When you introduce routes from one protocol into OSPF, it requires careful handling of Link State Advertisements (LSAs) and route types to ensure seamless communication. This guide walks you through the concept of route redistribution in OSPF, how LSA 4 and LSA 5 are used in the process, and the role of the \u201cForwarding Address\u201d in LSA 5. Additionally, we\u2019ll explain the differences between OSPF E1 and E2 routes and cover how to configure redistribution in an OSPF environment.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"What-is-Route-Redistribution\"><strong>What is<\/strong> <strong>Route Redistribution<\/strong>?<\/h2>\n\n\n\n<p>Redistribution shares networks from one protocol to another within a router. When you run two or more protocols on different interfaces of a router, you can use redistribution to learn and share networks between these protocols. Redistribution won\u2019t work if one protocol is on one router and another protocol is on a different router. You should configure the protocols on the same router, typically on different interfaces.<\/p>\n\n\n\n<p>In the figure below, OSPF connects R1 and R2, while EIGRP connects R2 and R3. R2 learns about the 30.0.0.0 network from R3 using EIGRP. By default, R2 won\u2019t pass this network to OSPF, so R1 won\u2019t be able to access it. By performing route redistribution on R2 from EIGRP to OSPF, we can share the network with OSPF and pass it on to R1.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1024\" height=\"515\" src=\"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?resize=1024%2C515&#038;ssl=1\" alt=\"A topology showing route redistribution in OSPF\" class=\"wp-image-479\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?resize=1024%2C515&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?resize=300%2C151&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?resize=768%2C387&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?resize=1536%2C773&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?w=1842&amp;ssl=1 1842w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Route Redistribution from EIGRP to OSPF<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"Redistribution-in-OSPF\"><strong>Redistribution in OSPF<\/strong><\/h2>\n\n\n\n<p><strong>OSPF uses three types of LSAs during redistribution, which are Router LSA (Type 1), ASBR Summary LSA (Type 4), and AS External LSA (Type 5)<\/strong><\/p>\n\n\n\n<p>These are the different events that will happen once we configure redistribution:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The ASBR will use Router LSAs (Type 1) to announce itself as the ASBR when we configure redistribution. The ASBR will set the \u2018E\u2019 flag bit in the Router LSA to inform everyone in its area that it is now acting as an ASBR. <\/li>\n\n\n\n<li>When the ABR gets the Router LSA with the \u201cE\u201d bit set, it will generate LSA 4 containing the Router ID of the ASBR. This informs everyone outside the area about the new ASBR.<\/li>\n\n\n\n<li>Finally, the ASBR will generate LSA 5 containing the redistributed networks.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"How-LSA-4-is-used-in-Redistribution\"><strong>How LSA 4 is used in Redistribution?<\/strong><\/h2>\n\n\n\n<p>The ABR uses LSA 4 to advertise the presence of the ASBR to routers in other areas. The ABR learns about the ASBR when it receives a Router LSA from the ASBR with the E flag set. This Router LSA informs all routers within the ASBR\u2019s area about its presence. However, the Router LSA does not propagate outside the area. To inform other areas, the ABR generates an LSA 4, which includes the ASBR\u2019s Router ID, and sends it to all other areas\u200b.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"How-LSA-5-is-Used-in-Redistribution\"><strong>How LSA 5 is Used in Redistribution?<\/strong><\/h2>\n\n\n\n<p>LSA 5 contains the redistributed networks that the ASBR learns from other routing protocols. When an ASBR discovers routes from protocols like BGP, it generates an LSA 5 to share these routes with other OSPF routers. This LSA includes the external network\u2019s address, network mask, and the metric type (E1 or E2). It can also have a forwarding address to suggest an alternative route. The scope of LSA 5 extends across the entire OSPF autonomous system, ensuring all routers know how to reach external destinations through the ASBR.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"What-is-Forwarding-Address-in-LSA-5\"><strong>What is \u201cForwarding Address\u201d in LSA 5?<\/strong><\/h2>\n\n\n\n<p>The \u201cForwarding address\u201d field in an AS-external-LSA (Type 5 LSA) suggests an interface IP that other routers can use to reach the redistributed network in that LSA. By default, OSPF sets the forwarding address to 0.0.0.0, indicating that routers should send packets directly to the ASBR itself.<\/p>\n\n\n\n<p>The ASBR can specify a different IP address in the forwarding address field if it wants to redirect traffic through another device. This address can be the IP of another router\u2019s interface, which helps when the ASBR is not the best next hop for reaching the external destination. This feature proves particularly useful when an ASBR receives external routes from a non-OSPF routing protocol (e.g., BGP) and needs to direct traffic through a router that isn\u2019t participating in OSPF but is closer to the external destination. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1024\" height=\"449\" src=\"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Forwarding-address-.png?resize=1024%2C449&#038;ssl=1\" alt=\"Network topology showing four routers with an OSPF ASBR redistributing routes from BGP, using a Forwarding Address\" class=\"wp-image-647\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Forwarding-address-.png?resize=1024%2C449&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Forwarding-address-.png?resize=300%2C132&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Forwarding-address-.png?resize=768%2C337&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Forwarding-address-.png?resize=1536%2C674&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Forwarding-address-.png?w=1743&amp;ssl=1 1743w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">R3 (ASBR) redistributing using R4\u2019s IP as forwarding address<\/figcaption><\/figure>\n\n\n\n<p>In the above topology, R1, R2, and R3 are using OSPF, and BGP is running between R3 and R4. Here, R3 (the ASBR) learns BGP routes from R4 (in this example, the route to 40.0.0.0) and redistributes that route into the OSPF domain using a Type 5 LSA.<\/p>\n\n\n\n<p>Although R3 is responsible for sending the redistributed network information to R2, R2 can directly reach R4 (with IP address 2.2.2.4) to forward data packets to the 40.0.0.0 network. In this case, R3 will set the Forwarding Address in the Type 5 LSA to 2.2.2.4, indicating that R2 should use this address as the next hop to reach the redistributed network 40.0.0.0, rather than routing the traffic back through R3.<\/p>\n\n\n\n<p>We can conclude that the Forwarding Address is set under the following conditions:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The ASBR and another non-OSPF router are on the same subnet.<\/li>\n\n\n\n<li>The ASBR learns routes from this non-OSPF router on the subnet.<\/li>\n\n\n\n<li>The non-OSPF router is the actual gateway to the external network, so the ASBR sets the Forwarding Address to this router\u2019s IP<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"OSPF-E1-and-E2-Routes\"><strong>OSPF E1 and E2 Routes<\/strong><\/h2>\n\n\n\n<p>When OSPF advertises a redistributed network, it uses two types of metrics: <strong>External Type 1 (E1) and External Type 2 (E2).<\/strong><\/p>\n\n\n\n<p>When OSPF advertises a redistributed network using the E1 metric type, it includes both the cost to reach the ASBR and the cost advertised by the ASBR for the redistributed network. This means that the total path cost to the external destination is the sum of the internal OSPF cost to reach the ASBR and the external cost provided by the ASBR.<\/p>\n\n\n\n<p>On the other hand, when OSPF uses the E2 metric type, it only considers the cost advertised by the ASBR for the redistributed network. The internal cost to reach the ASBR is not included in the path calculation, making the E2 cost static regardless of the location within the OSPF domain. By default, OSPF uses E2 metric type for all redistributed networks unless explicitly configure otherwise.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\" id=\"Configuring-Redistribution\"><strong>Configuring Redistribution<\/strong>:<\/h2>\n\n\n\n<p>To configure OSPF on a Cisco router, use the \u201credistribute\u201d command under the OSPF configuration mode. <\/p>\n\n\n\n<p>For example, in the topology given above, to redistribute networks from EIGRP, enter the following commands on R2: <\/p>\n\n\n\n<pre class=\"wp-block-code has-background-color has-foreground-background-color has-text-color has-background has-link-color wp-elements-51309918b926eec7c40208060c95778c\"><code>R2(config)# router ospf [process-number]\nR2(config-router)# redistribute eigrp [as-number] subnets<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\">\n\n\n\n<p style=\"background: linear-gradient(to right, #ADD8E6, #8A2BE2); padding: 10px; border-radius: 10px; font-weight: 600; color: black;\">\n  Next &gt;&gt;&gt; <a href=\"https:\/\/www.zframez.com\/articles\/routing\/ospf-redistribution-commands\" style=\"color: black;\">Cisco OSPF Redistribution Commands and Examples<\/a><br><br>\n  Previous &gt;&gt;&gt; <a href=\"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-dr-bdr-election\" style=\"color: black;\">Understanding OSPF DR BDR Election<\/a>\n<\/p>\n\n\n\n<p>Further reading: <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/4170-ospfprocesses.html\">cisco <\/a><\/p>\n\n\n\n<p><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>Table of Contents What is Route Redistribution? Redistribution in OSPF How LSA 4 is used in Redistribution? How LSA 5 is Used in Redistribution? What is \u201cForwarding Address\u201d in LSA 5? OSPF E1 and E2 Routes Configuring Redistribution Understanding OSPF Route Redistribution and LSA Types OSPF (Open Shortest Path First) Redistribution allows different routing protocols [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"wp-custom-template-post-with-sidebar2","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[163,66],"tags":[188,187,184,185,182,183,180,179,186,181],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-ospf","category-routing","tag-cisco-ospf-redistribution-commands","tag-configuring-redistribution-in-ospf","tag-ospf-e1-routes","tag-ospf-e2-routes","tag-ospf-lsa-4","tag-ospf-lsa-5","tag-ospf-redistribution","tag-route-redistribution-in-ospf","tag-what-is-ospf-oe2-and-oe1-metric-type","tag-what-is-redistribution"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding OSPF Redistribution - Tutorials<\/title>\n<meta name=\"description\" content=\"understanding ospf redistribution, lsa 4, lsa 5, forwarding address, E1 and E2 routes and configuring ospf redistribution\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding OSPF Redistribution - Tutorials\" \/>\n<meta property=\"og:description\" content=\"understanding ospf redistribution, lsa 4, lsa 5, forwarding address, E1 and E2 routes and configuring ospf redistribution\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution\" \/>\n<meta property=\"og:site_name\" content=\"Tutorials\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/zframez\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-02T15:13:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-13T05:02:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP-1024x515.png\" \/>\n<meta name=\"author\" content=\"sajith achipra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@zframez\" \/>\n<meta name=\"twitter:site\" content=\"@zframez\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sajith achipra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution\"},\"author\":{\"name\":\"sajith achipra\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/person\\\/8b3b88007644501771d2452d3cc80f41\"},\"headline\":\"Understanding OSPF Redistribution\",\"datePublished\":\"2024-08-02T15:13:14+00:00\",\"dateModified\":\"2024-09-13T05:02:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution\"},\"wordCount\":1112,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Redistribution-from-EIGRP-to-RIP-1024x515.png\",\"keywords\":[\"cisco ospf redistribution commands\",\"configuring redistribution in ospf\",\"ospf e1 routes\",\"ospf e2 routes\",\"ospf lsa 4\",\"ospf lsa 5\",\"ospf redistribution\",\"route redistribution in ospf\",\"what is ospf OE2 and OE1 metric type\",\"what is redistribution\"],\"articleSection\":[\"ospf\",\"routing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution\",\"url\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution\",\"name\":\"Understanding OSPF Redistribution - Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Redistribution-from-EIGRP-to-RIP-1024x515.png\",\"datePublished\":\"2024-08-02T15:13:14+00:00\",\"dateModified\":\"2024-09-13T05:02:47+00:00\",\"description\":\"understanding ospf redistribution, lsa 4, lsa 5, forwarding address, E1 and E2 routes and configuring ospf redistribution\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Redistribution-from-EIGRP-to-RIP.png?fit=1842%2C927&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Redistribution-from-EIGRP-to-RIP.png?fit=1842%2C927&ssl=1\",\"width\":1842,\"height\":927},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/routing\\\/understanding-ospf-redistribution#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/www.zframez.com\\\/articles\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding OSPF Redistribution\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#website\",\"url\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/\",\"name\":\"zframez tutorials\",\"description\":\"Learn networking bit by bit\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#organization\",\"name\":\"zframez technologies\",\"url\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/zframez-logo.jpg?fit=864%2C864&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/zframez-logo.jpg?fit=864%2C864&ssl=1\",\"width\":864,\"height\":864,\"caption\":\"zframez technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/zframez\\\/\",\"https:\\\/\\\/x.com\\\/zframez\",\"https:\\\/\\\/www.instagram.com\\\/zframez_technologies\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/person\\\/8b3b88007644501771d2452d3cc80f41\",\"name\":\"sajith achipra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g\",\"caption\":\"sajith achipra\"},\"sameAs\":[\"http:\\\/\\\/www.zframez.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding OSPF Redistribution - Tutorials","description":"understanding ospf redistribution, lsa 4, lsa 5, forwarding address, E1 and E2 routes and configuring ospf redistribution","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution","og_locale":"en_US","og_type":"article","og_title":"Understanding OSPF Redistribution - Tutorials","og_description":"understanding ospf redistribution, lsa 4, lsa 5, forwarding address, E1 and E2 routes and configuring ospf redistribution","og_url":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution","og_site_name":"Tutorials","article_publisher":"https:\/\/www.facebook.com\/zframez\/","article_published_time":"2024-08-02T15:13:14+00:00","article_modified_time":"2024-09-13T05:02:47+00:00","og_image":[{"url":"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP-1024x515.png","type":"","width":"","height":""}],"author":"sajith achipra","twitter_card":"summary_large_image","twitter_creator":"@zframez","twitter_site":"@zframez","twitter_misc":{"Written by":"sajith achipra","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#article","isPartOf":{"@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution"},"author":{"name":"sajith achipra","@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/person\/8b3b88007644501771d2452d3cc80f41"},"headline":"Understanding OSPF Redistribution","datePublished":"2024-08-02T15:13:14+00:00","dateModified":"2024-09-13T05:02:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution"},"wordCount":1112,"commentCount":0,"publisher":{"@id":"https:\/\/www.zframez.com\/articles\/#organization"},"image":{"@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#primaryimage"},"thumbnailUrl":"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP-1024x515.png","keywords":["cisco ospf redistribution commands","configuring redistribution in ospf","ospf e1 routes","ospf e2 routes","ospf lsa 4","ospf lsa 5","ospf redistribution","route redistribution in ospf","what is ospf OE2 and OE1 metric type","what is redistribution"],"articleSection":["ospf","routing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution","url":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution","name":"Understanding OSPF Redistribution - Tutorials","isPartOf":{"@id":"https:\/\/www.zframez.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#primaryimage"},"image":{"@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#primaryimage"},"thumbnailUrl":"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP-1024x515.png","datePublished":"2024-08-02T15:13:14+00:00","dateModified":"2024-09-13T05:02:47+00:00","description":"understanding ospf redistribution, lsa 4, lsa 5, forwarding address, E1 and E2 routes and configuring ospf redistribution","breadcrumb":{"@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#primaryimage","url":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?fit=1842%2C927&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Redistribution-from-EIGRP-to-RIP.png?fit=1842%2C927&ssl=1","width":1842,"height":927},{"@type":"BreadcrumbList","@id":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-redistribution#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Tutorials","item":"https:\/\/www.zframez.com\/articles"},{"@type":"ListItem","position":2,"name":"Understanding OSPF Redistribution"}]},{"@type":"WebSite","@id":"https:\/\/www.zframez.com\/articles\/#website","url":"https:\/\/www.zframez.com\/articles\/","name":"zframez tutorials","description":"Learn networking bit by bit","publisher":{"@id":"https:\/\/www.zframez.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.zframez.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.zframez.com\/articles\/#organization","name":"zframez technologies","url":"https:\/\/www.zframez.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/zframez-logo.jpg?fit=864%2C864&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/zframez-logo.jpg?fit=864%2C864&ssl=1","width":864,"height":864,"caption":"zframez technologies"},"image":{"@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/zframez\/","https:\/\/x.com\/zframez","https:\/\/www.instagram.com\/zframez_technologies\/"]},{"@type":"Person","@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/person\/8b3b88007644501771d2452d3cc80f41","name":"sajith achipra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g","caption":"sajith achipra"},"sameAs":["http:\/\/www.zframez.com"]}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":633,"url":"https:\/\/www.zframez.com\/articles\/routing\/ospf-redistribution-commands","url_meta":{"origin":474,"position":0},"title":"OSPF Configuration Example 4 : Redistribution Commands","author":"sajith achipra","date":"August 29, 2024","format":false,"excerpt":"Configuring Redistribution, E1 Metric, and Route Tags in OSPF In the tutorial \"Understanding OSPF Redistribution\" , we discussed different concepts in redistribution. In this one, we\u2019ll go through the various OSPF commands related to redistribution. We\u2019ll walk through a step-by-step process to configure redistribution in OSPF, focusing on scenarios like\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":292,"url":"https:\/\/www.zframez.com\/articles\/routing\/ospf-configuration-example","url_meta":{"origin":474,"position":1},"title":"OSPF Configuration Example 1: Adjacency Formation Between Two Cisco Routers","author":"sajith achipra","date":"July 19, 2024","format":false,"excerpt":"Table of Contents OSPF Configuration Example 1: Adjacency Formation Between Two Cisco Routers Configuration Procedure About OSPF Configuration Why use loopback interfaces? OSPF Configuration Commands Adjacency Verification Understanding the \"show\" commands OSPF Configuration Example 1: Adjacency Formation Between Two Cisco Routers In previous chapters, you learned key OSPF concepts like\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":611,"url":"https:\/\/www.zframez.com\/articles\/routing\/ospf-configuration-example-multi-area-setup","url_meta":{"origin":474,"position":2},"title":"OSPF Configuration Example 2: Multi-Area Setup","author":"sajith achipra","date":"August 18, 2024","format":false,"excerpt":"Configuring OSPF with Multiple Areas : Earlier, we covered how to configure OSPF with two routers in the same area. In this guide, we'll walk through an example of configuring OSPF with multiple areas. Using four routers and three areas, we'll demonstrate the setup process. The objective of this exercise\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-18-171023.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-18-171023.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-18-171023.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-18-171023.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-18-171023.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-18-171023.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":449,"url":"https:\/\/www.zframez.com\/articles\/routing\/ospf-configuration-examples-dr-bdr-election","url_meta":{"origin":474,"position":3},"title":"OSPF Configuration Example 3 : DR BDR election","author":"sajith achipra","date":"July 26, 2024","format":false,"excerpt":"Configuring OSPF DR and BDR with Interface Priority and Router ID In all shared networks like Ethernet, Frame Relay, and ATM, OSPF selects one router as the DR and another as the BDR. The DR reduces the number of adjacencies in these networks, preventing the flow of duplicate LSAs. You\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/ospf-topology-for-DR-BDR-election-with-priority.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/ospf-topology-for-DR-BDR-election-with-priority.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/ospf-topology-for-DR-BDR-election-with-priority.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/ospf-topology-for-DR-BDR-election-with-priority.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/ospf-topology-for-DR-BDR-election-with-priority.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":415,"url":"https:\/\/www.zframez.com\/articles\/routing\/understanding-ospf-dr-bdr-election","url_meta":{"origin":474,"position":4},"title":"Understanding OSPF DR BDR Election","author":"sajith achipra","date":"July 24, 2024","format":false,"excerpt":"Table of Contents What is a Designated Router or DR? What is a Backup Designated Router or BDR? DR BDR Election Process Why does OSPF elect the BDR before the DR? What is a DR Other? What happens after the election? How BDR will know DR is alive? OSPF Network\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-Adjacency-with-out-DR.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-Adjacency-with-out-DR.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-Adjacency-with-out-DR.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-Adjacency-with-out-DR.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-Adjacency-with-out-DR.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-Adjacency-with-out-DR.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":219,"url":"https:\/\/www.zframez.com\/articles\/routing\/bgp-protocol","url_meta":{"origin":474,"position":5},"title":"Introduction to BGP Protocol","author":"sajith achipra","date":"July 17, 2024","format":false,"excerpt":"Introduction to BGP \u2013 The Backbone of Internet Routing In this tutorial, we\u2019ll go over the basics of BGP (Border Gateway Protocol) and what makes it different from other routing protocols. If you're just getting started with routing or trying to understand how large networks communicate over the internet, this\u2026","rel":"","context":"In &quot;bgp&quot;","block_context":{"text":"bgp","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/bgp"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/BGP-packet.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/BGP-packet.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/BGP-packet.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/BGP-packet.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/BGP-packet.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/BGP-packet.png?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":5,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts\/474\/revisions\/850"}],"wp:attachment":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}