{"id":4280,"date":"2012-06-01T02:31:21","date_gmt":"2012-06-01T08:31:21","guid":{"rendered":"http:\/\/humairahmed.com\/blog\/?p=4280"},"modified":"2012-06-01T06:05:19","modified_gmt":"2012-06-01T12:05:19","slug":"configuring-ospf-with-multiple-areas","status":"publish","type":"post","link":"https:\/\/humairahmed.com\/blog\/?p=4280","title":{"rendered":"Configuring OSPF with Multiple Areas"},"content":{"rendered":"<div class=\"twttr_buttons\"><div class=\"twttr_twitter\">\n\t\t\t\t\t<a href=\"http:\/\/twitter.com\/share?text=Configuring+OSPF+with+Multiple+Areas\" class=\"twitter-share-button\" data-via=\"\" data-hashtags=\"\"  data-size=\"default\" data-url=\"https:\/\/humairahmed.com\/blog\/?p=4280\"  data-related=\"\" target=\"_blank\">Tweet<\/a>\n\t\t\t\t<\/div><\/div><p>In this lab, I use three Cisco 3725 routers [IOS 12.4(15)T10] to demonstrate how to setup OSPF with multiple Areas. Below is the network diagram for this lab. <!--more--> <div id=\"attachment_4281\" style=\"width: 585px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/ospf_areas-e1338537148667.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4281\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/ospf_areas-e1338537148667.png\" alt=\"Lab Diagram\" title=\"Lab Diagram\" width=\"575\" height=\"196\" class=\"size-full wp-image-4281\" \/><\/a><p id=\"caption-attachment-4281\" class=\"wp-caption-text\">Lab Diagram<\/p><\/div><\/p>\n<p><strong><u>Setup basic configuration on all routers:<\/u><\/strong><br \/>\n<br \/><strong>R1<\/strong><\/p>\n<blockquote><p>\n&#8211; enable<br \/>\n&#8211; configure terminal<br \/>\n&#8211; interface fastEthernet 0\/0<br \/>\n&#8211; ip address 14.0.0.1 255.255.255.0<br \/>\n&#8211; no shutdown<br \/>\n&#8211; exit <br \/>\n&#8211; interface serial 0\/0<br \/>\n&#8211; ip address 12.0.0.1 255.255.255.252<br \/>\n&#8211; no shutown<br \/>\n&#8211; exit <br \/>\n&#8211; interface loopback 1<br \/>\n&#8211; ip address 1.1.1.1 255.255.255.255<br \/>\n&#8211; exit<br \/>\n&#8211; exit<br \/>\n&#8211; write\n<\/p><\/blockquote>\n<p>\n<strong>R2<\/strong><\/p>\n<blockquote><p>\n&#8211; enable<br \/>\n&#8211; configure terminal<br \/>\n&#8211; interface serial 0\/0<br \/>\n&#8211; ip address 12.0.0.2 255.255.255.252<br \/>\n&#8211; no shutdown <br \/>\n&#8211; interface serial 0\/1<br \/>\n&#8211; ip address 13.0.0.1 255.255.255.252<br \/>\n&#8211; no shutdown<br \/>\n&#8211; exit <br \/>\n&#8211; interface loopback 2<br \/>\n&#8211; ip address 2.2.2.2 255.255.255.255<br \/>\n&#8211; exit<br \/>\n&#8211; exit<br \/>\n&#8211; write\n<\/p><\/blockquote>\n<p>\n<strong>R3<\/strong><\/p>\n<blockquote><p>\n&#8211; enable<br \/>\n&#8211; configure terminal<br \/>\n&#8211; interface serial 0\/0<br \/>\n&#8211; ip address 13.0.0.2 255.255.255.252<br \/>\n&#8211; no shutdown <br \/>\n&#8211; interface fastEthernet 0\/0<br \/>\n&#8211; ip address 15.0.0.1 255.255.255.0<br \/>\n&#8211; no shutdown<br \/>\n&#8211; exit <br \/>\n&#8211; interface loopback 3<br \/>\n&#8211; ip address 3.3.3.3 255.255.255.255<br \/>\n&#8211; exit<br \/>\n&#8211; exit<br \/>\n&#8211; write\n<\/p><\/blockquote>\n<p><strong><u>Setup OSPF on all routers:<\/u><\/strong><br \/>\n<br \/><strong>R1<\/strong><\/p>\n<blockquote><p>\n&#8211; enable<br \/>\n&#8211; configure terminal<br \/>\n&#8211; router ospf 1<br \/>\n&#8211; network 12.0.0.0 0.0.0.3 area 1<br \/>\n&#8211; network 14.0.0.0 0.0.0.255 area 1<br \/>\n&#8211; network 1.1.1.1 0.0.0.0 area 1<br \/>\n&#8211; exit<br \/>\n&#8211; exit<br \/>\n&#8211; write\n<\/p><\/blockquote>\n<p>\n<strong>R2<\/strong><\/p>\n<blockquote><p>\n&#8211; enable<br \/>\n&#8211; configure terminal<br \/>\n&#8211; router ospf 2<br \/>\n&#8211; network 12.0.0.0 0.0.0.3 area 1<br \/>\n&#8211; network 13.0.0.0 0.0.0.3 area 0<br \/>\n&#8211; network 2.2.2.2 0.0.0.0 area 0<br \/>\n&#8211; exit<br \/>\n&#8211; exit<br \/>\n&#8211; write\n<\/p><\/blockquote>\n<p>\n<strong>R3<\/strong><\/p>\n<blockquote><p>\n&#8211; enable<br \/>\n&#8211; configure terminal<br \/>\n&#8211; router ospf 3<br \/>\n&#8211; network 13.0.0.0 0.0.0.3 area 0<br \/>\n&#8211; network 15.0.0.0 0.0.0.255 area 0<br \/>\n&#8211; network 3.3.3.3 0.0.0.0 area 0<br \/>\n&#8211; exit<br \/>\n&#8211; exit<br \/>\n&#8211; write\n<\/p><\/blockquote>\n<p>Below are some useful OSPF commands that can be used for troubleshooting\/verification.<\/p>\n<p><strong><u>OSPF Ping Test From R1: <\/u><\/strong><br \/>\n<div id=\"attachment_4297\" style=\"width: 585px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/ospf_areass_ping-e1338538186332.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4297\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/ospf_areass_ping-e1338538186332.png\" alt=\"OSPF Ping Test\" title=\"OSPF Ping Test\" width=\"575\" height=\"225\" class=\"size-full wp-image-4297\" \/><\/a><p id=\"caption-attachment-4297\" class=\"wp-caption-text\">OSPF Ping Test<\/p><\/div><\/p>\n<p><strong>___________________________________________________________________________________<\/strong><br \/>\n<br \/><strong><u>Verification from R2:<\/u><\/strong><\/p>\n<p><strong><u>show ip ospf interface brief<\/u><\/strong><br \/>\n<div id=\"attachment_4326\" style=\"width: 585px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/ip_ospf_int_br-e1338540126979.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4326\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/ip_ospf_int_br-e1338540126979.png\" alt=\"show ip ospf interface brief\" title=\"show ip ospf interface brief\" width=\"575\" height=\"91\" class=\"size-full wp-image-4326\" \/><\/a><p id=\"caption-attachment-4326\" class=\"wp-caption-text\">show ip ospf interface brief<\/p><\/div><\/p>\n<p><strong><u>show ip protocols<\/u><\/strong><br \/>\n<div id=\"attachment_4335\" style=\"width: 509px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_pro1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4335\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_pro1.png\" alt=\"show ip protocols\" title=\"show ip protocols\" width=\"499\" height=\"318\" class=\"size-full wp-image-4335\" srcset=\"https:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_pro1.png 499w, https:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_pro1-300x191.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/a><p id=\"caption-attachment-4335\" class=\"wp-caption-text\">show ip protocols<\/p><\/div><\/p>\n<p><strong><u>show ip ospf neighbor<\/u><\/strong><br \/>\n<div id=\"attachment_4336\" style=\"width: 585px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_ospf_nei-e1338540840255.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4336\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_ospf_nei-e1338540840255.png\" alt=\"show ip ospf neighbor\" title=\"show ip ospf neighbor\" width=\"575\" height=\"90\" class=\"size-full wp-image-4336\" \/><\/a><p id=\"caption-attachment-4336\" class=\"wp-caption-text\">show ip ospf neighbor<\/p><\/div><\/p>\n<p>An Area Border Router (ABR) is a router that belongs to two areas; it creates a summary of the prefixes in one area and announces it to the other area as a LSA Type 3. In every LSA Type 3, the ABR router puts itself as next-hop for the route. In the below output, you can see R2 is generating the LSA Type 3 packets respectively for R1 and R3.<\/p>\n<p><strong><u>show ip ospf database<\/u><\/strong><br \/>\n<div id=\"attachment_4341\" style=\"width: 585px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_ospf_data-e1338541415281.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4341\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_ospf_data-e1338541415281.png\" alt=\"show ip ospf database\" title=\"show ip ospf database\" width=\"575\" height=\"467\" class=\"size-full wp-image-4341\" \/><\/a><p id=\"caption-attachment-4341\" class=\"wp-caption-text\">show ip ospf database<\/p><\/div><\/p>\n<p><strong><u>show ip route<\/u><\/strong><br \/>\n<div id=\"attachment_4342\" style=\"width: 585px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_route1-e1338541464642.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4342\" src=\"http:\/\/humairahmed.com\/blog\/wp-content\/uploads\/2012\/06\/show_ip_route1-e1338541464642.png\" alt=\"show ip route\" title=\"show ip route\" width=\"575\" height=\"379\" class=\"size-full wp-image-4342\" \/><\/a><p id=\"caption-attachment-4342\" class=\"wp-caption-text\">show ip route<\/p><\/div><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this lab, I use three Cisco 3725 routers [IOS 12.4(15)T10] to demonstrate how to setup OSPF with multiple Areas. Below is the network diagram for this lab.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297,296,295,747,3,821],"tags":[1263,1266,4354,1114,1115,1264,1265,372,934,1267,298],"class_list":["post-4280","post","type-post","status-publish","format-standard","hentry","category-cisco","category-labs","category-networking","category-protocols","category-technology","category-troubleshooting","tag-area","tag-areas","tag-cisco","tag-cisco-3725","tag-cisco-3725-router","tag-multiple-areas","tag-multiple-ospf-areas","tag-ospf","tag-ospf-area","tag-ospf-areas","tag-router"],"_links":{"self":[{"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4280"}],"version-history":[{"count":59,"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4280\/revisions"}],"predecessor-version":[{"id":4356,"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4280\/revisions\/4356"}],"wp:attachment":[{"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humairahmed.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}