{"id":2847,"date":"2025-03-08T15:57:37","date_gmt":"2025-03-08T21:57:37","guid":{"rendered":"https:\/\/techlensfocus.com\/?p=2847"},"modified":"2025-03-08T15:57:38","modified_gmt":"2025-03-08T21:57:38","slug":"cisco-packet-tracer-lab-static-and-default-routes","status":"publish","type":"post","link":"https:\/\/techlensfocus.com\/index.php\/2025\/03\/08\/cisco-packet-tracer-lab-static-and-default-routes\/","title":{"rendered":"Cisco Packet Tracer Lab: Static and Default Routes"},"content":{"rendered":"\n<div class=\"wp-block-ideabox-toc ib-block-toc\" data-anchors='h2,h3,h4,h5,h6' data-collapsable='true' ><div class=\"ib-toc-container ib-toc-list-style-numbers ib-toc-hierarchical ib-toc-expanded\"><div class=\"ib-toc-header\"><div class=\"ib-toc-header-title\">Table of Contents<\/div><div class=\"ib-toc-header-right\"><span class=\"ib-toc-icon-collapse\"><span class=\"dashicon dashicons dashicons-minus\"><\/span><\/span><span class=\"ib-toc-icon-expand\"><span class=\"dashicon dashicons dashicons-plus\"><\/span><\/span><\/div><\/div><div class=\"ib-toc-separator\" style=\"height:2px\"><\/div><div class=\"ib-toc-body\"><ol class=\"ib-toc-anchors\"><\/ol><\/div><\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>Routing is a function of a router that enables communication between different networks. In this lab, we will configure static and default routes on routers using Cisco Packet Tracer.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Network Topology <\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>The network consists of three routers (<strong>R1<\/strong>, <strong>R2,<\/strong> <strong>R3<\/strong>) connected to different networks. <strong>PC1<\/strong> and <strong>PC2<\/strong> must communicate using static routes. A default route will be configured for external network connectivity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"184\" src=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-08-at-11.47.36\u202fAM-1024x184.png\" alt=\"\" class=\"wp-image-2850\" srcset=\"https:\/\/techlensfocus.com\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-08-at-11.47.36\u202fAM-1024x184.png 1024w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-08-at-11.47.36\u202fAM-300x54.png 300w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-08-at-11.47.36\u202fAM-768x138.png 768w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-08-at-11.47.36\u202fAM-1536x277.png 1536w, https:\/\/techlensfocus.com\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-08-at-11.47.36\u202fAM.png 1544w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Types of Routes<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Connected Route<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Connected Route is the route that is automatically added to the routing table when an interface is assigned an IP address.<\/p>\n\n\n\n<p>Connected route is indicated by the code <strong>C<\/strong> in cisco. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1#show ip route | include C\nCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP\nC       192.168.1.0\/24 is directly connected, GigabitEthernet0\/0\/0<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Local Route<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>The Local Route represents the specific IP address of the router\u2019s interface. The router will known when a message is addressed to itself.<\/p>\n\n\n\n<p>Local Route is indicated by code<strong> L<\/strong> in cisco.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1#show ip route | include L\nCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP\n       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area\nL       192.168.1.1\/32 is directly connected, GigabitEthernet0\/0\/0<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Default Route<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>A default route (0.0.0.0\/0) is used when no specific route is found in the routing table. This is also known as the gateway of last resort.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Static Route<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>There are <strong>three<\/strong> methods for configuring a static route:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Specifying the <strong>next-hop IP address<\/strong>, which is known as a<strong> recursive static route<\/strong>.<\/li>\n\n\n\n<li>Specifying the <strong>exit interface<\/strong>, which is known as a <strong>directly connected static route<\/strong>.<\/li>\n\n\n\n<li>Specifying <strong>both the exit interface and the next-hop IP address<\/strong>, which is known as a <strong>fully specified static route<\/strong><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration Steps<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Assign IP Addresses<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Let&#8217;s configure IP addresses on router interfaces. We will pick <strong>R1<\/strong> to configure as a demonstration, and you may proceed with configuring <strong>R2<\/strong> and <strong>R3<\/strong> accordingly.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1>enable\nR1#configure terminal\nR1(config)#interface GigabitEthernet 0\/0\nR1(config-if)#ip address 192.168.1.1 255.255.255.0\nR1(config-if)#no shutdown\n\nR1(config-if)#exit\nR1(config)#interface gigabitEthernet 0\/1\nR1(config-if)#ip address 192.168.15.1 255.255.255.0\nR1(config-if)#no shutdown\n<\/pre>\n\n\n\n<p>Verify the configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1#show ip interface brief \nInterface              IP-Address      OK? Method Status                Protocol \nGigabitEthernet0\/0   192.168.1.1     YES manual up                    up \nGigabitEthernet0\/1   192.168.15.1    YES manual up                    down \nGigabitEthernet0\/2   unassigned      YES unset  administratively down down <\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Static Routes<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Static routes must be configured to allow communication between different networks. The following configurations enable proper routing between <strong>R1<\/strong>, <strong>R2<\/strong>, and <strong>R3<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Recursive Static Route (next-hop IP)<\/strong><\/h4>\n\n\n\n<p>A recursive static route is configured by specifying the destination network address, the netmask, and the IP address of the next hop:<\/p>\n\n\n\n<p><strong>ip route <\/strong><em>destination-network netmask<\/em> <em>next-hop<\/em><\/p>\n\n\n\n<p>Below is the configuration for <strong>R1<\/strong>, <strong>R2<\/strong>, <strong>R3<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.15.2\n\nR1#show ip route\n     192.168.1.0\/24 is variably subnetted, 2 subnets, 2 masks\nC       192.168.1.0\/24 is directly connected, GigabitEthernet0\/0\nL       192.168.1.1\/32 is directly connected, GigabitEthernet0\/0\n\nS    192.168.2.0\/24 [1\/0] via 192.168.15.2\n     192.168.15.0\/24 is variably subnetted, 2 subnets, 2 masks\n\nC       192.168.15.0\/24 is directly connected, GigabitEthernet0\/1\nL       192.168.15.1\/32 is directly connected, GigabitEthernet0\/1<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R2(config)#ip route 192.168.2.0 255.255.255.0 192.168.22.2\nR2(config)#ip route 192.168.1.0 255.255.255.0 192.168.15.1\n\nR2#show ip route\nS    192.168.1.0\/24 [1\/0] via 192.168.15.1\nS    192.168.2.0\/24 [1\/0] via 192.168.22.2\n     192.168.15.0\/24 is variably subnetted, 2 subnets, 2 masks\nC       192.168.15.0\/24 is directly connected, GigabitEthernet0\/0\nL       192.168.15.2\/32 is directly connected, GigabitEthernet0\/0\n     192.168.22.0\/24 is variably subnetted, 2 subnets, 2 masks\nC       192.168.22.0\/24 is directly connected, GigabitEthernet0\/1\nL       192.168.22.1\/32 is directly connected, GigabitEthernet0\/1<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.22.1\n\nR3#show ip route\nS    192.168.1.0\/24 [1\/0] via 192.168.22.1\n     192.168.2.0\/24 is variably subnetted, 2 subnets, 2 masks\nC       192.168.2.0\/24 is directly connected, GigabitEthernet0\/1\nL       192.168.2.1\/32 is directly connected, GigabitEthernet0\/1\n     192.168.22.0\/24 is variably subnetted, 2 subnets, 2 masks\nC       192.168.22.0\/24 is directly connected, GigabitEthernet0\/0\nL       192.168.22.2\/32 is directly connected, GigabitEthernet0\/0<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Directly Connected Static Route<\/strong><\/h4>\n\n\n\n<p>A directly connected static route specifies only the exit interface. A disadvantage of this type of route is that the router will attempt to send packets directly to the destination rather than to the next hop. Also, this method rely on Proxy ARP to resolve the destination.<\/p>\n\n\n\n<p><strong>ip route <\/strong><em>destination-network<\/em> <em>netmask<\/em> <em>exit-interface<\/em><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1(config)#ip route 192.168.2.0 255.255.255.0 g0\/0<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R2(config)#ip route 192.168.2.0 255.255.255.0 g0\/0\nR2(config)#ip route 192.168.1.0 255.255.255.0 g0\/1<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R3(config)#ip route 192.168.1.0 255.255.255.0 g0\/1<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Fully Specified Static Route<\/strong><\/h4>\n\n\n\n<p>A fully specified static route includes both the exit interface and the next-hop IP address, avoiding additional lookups.<\/p>\n\n\n\n<p><strong>ip route <\/strong><em>destination-network<\/em> <em>netmask<\/em> <em>exit-interface<\/em> <em>next-hop<\/em><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R1(config)#ip route 192.168.2.0 255.255.255.0 g0\/0 192.168.15.2<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R2(config)#ip route 192.168.2.0 255.255.255.0 g0\/0 192.168.22.2\nR2(config)#ip route 192.168.1.0 255.255.255.0 g0\/1 192.168.15.1<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R3(config)#ip route 192.168.1.0 255.255.255.0 g0\/1 192.168.22.1<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Default Route<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>A default route is a route to the least-specific destination possible: <strong>0.0.0.0\/0<\/strong><\/p>\n\n\n\n<p>This route matches all possible IP addresses and is only used when no other, more specific routes are available. A default route is often used to provide a path to the internet.\u00a0 The default route is also referred to as the &#8220;gateway of last resort&#8221;.<\/p>\n\n\n\n<p>To configure a default route, the ip route command is used, with a destination network of <strong>0.0.0.0<\/strong> and a netmask of <strong>0.0.0.0<\/strong>, along with the next-hop IP address or exit interface.<\/p>\n\n\n\n<p>In this example, <strong>R3<\/strong> has one static route to specific destination network and we will configure one default route to the Internet. Assuming the ISP&#8217;s IP is <strong>306.0.142.5<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.22.1\nR3(config)#ip route 0.0.0.0 0.0.0.0 306.0.142.5<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>In this lab, we configured static and default routes on routers using Cisco Packet Tracer. We demonstrated different types of static routes and their use cases. Proper route configuration ensures efficient network communication and connectivity to external networks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure static and default route on Cisco routers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6,7],"tags":[57,87],"class_list":["post-2847","post","type-post","status-publish","format-standard","hentry","category-it","category-networking","tag-packet-tracer","tag-routing"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/2847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/comments?post=2847"}],"version-history":[{"count":37,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/2847\/revisions"}],"predecessor-version":[{"id":2885,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/posts\/2847\/revisions\/2885"}],"wp:attachment":[{"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/media?parent=2847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/categories?post=2847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techlensfocus.com\/index.php\/wp-json\/wp\/v2\/tags?post=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}