{"id":362,"date":"2017-01-20T11:57:48","date_gmt":"2017-01-20T11:57:48","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=362"},"modified":"2017-01-24T02:30:07","modified_gmt":"2017-01-24T02:30:07","slug":"ccent-6-s01-e26-implementing-static-routing","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=362","title":{"rendered":"CCENT 6 S01 E26 \u2013 Implementing Static Routing"},"content":{"rendered":"<h2><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/lab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-381\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/lab.png\" alt=\"\" width=\"647\" height=\"268\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/lab.png 647w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/lab-300x124.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/lab-150x62.png 150w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/a><\/h2>\n<h2>Understanding the Purpose of Routing<\/h2>\n<p>Stop broadcasts<br \/>\nAllow packets to move from one network to another<br \/>\nBy default, routers only know what they are plugged into<\/p>\n<h2>How Static Routing Can Help<\/h2>\n<p>Manually tell routers what networks they can reach<\/p>\n<pre>r2(config)#ip route 192.168.33.0 255.255.255.0 192.168.22.2<\/pre>\n<p>192.168.33.0 = Destination Network<br \/>\n255.255.255.0 = Destination Subnet Mask<br \/>\n192.168.22.2 = Next Hop IP Address<\/p>\n<p>In order to return the traffic, you must also let the connecting router know how to get back!<\/p>\n<pre>r3(config)#ip route 192.168.11.0 255.255.25.0 192.168.22.1<\/pre>\n<p>&nbsp;<\/p>\n<h3>Configure a default route<\/h3>\n<p>Default routes are used for anything that is unknown to the router<\/p>\n<pre>r2(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.1<\/pre>\n<p>0.0.0.0 = Any unknown IP address<br \/>\n0.0.0.0 = Any subnet mask<br \/>\n192.168.11.1 = IP Address of next hop for router to access.<\/p>\n<h3>Configure DNS Name Servers<\/h3>\n<pre>r1(config)#ip name-server IP.ADD.RE.SS<\/pre>\n<p>&nbsp;<\/p>\n<h2>Putting it all together<\/h2>\n<h3>Router #3<\/h3>\n<p>Starting Specs<br \/>\nLab3 Ping r3 192.168.22.2: Yes<br \/>\nLab3 Ping r2 192.168.22.1: No route to hose<br \/>\nLab3 Ping r2 192.168.11.2: No route to host<br \/>\nLab3 Ping r1 192.168.11.1: No route to host<br \/>\nLab3 Ping Lab2 192.168.11.101: No route to host<br \/>\nr3 ping r2 192.168.22.1: Yes<br \/>\nr3 ping r2 192.168.11.2: No route to host<\/p>\n<p>&nbsp;<\/p>\n<p>Option 1: Internal Only<\/p>\n<pre>r3(config)#ip route 192.168.11.0 255.255.255.0 192.168.22.1<\/pre>\n<p>Better: Routes anything unknown through Router 2<\/p>\n<pre>r3(config)#ip route 0.0.0.0 0.0.0.0 192.168.22.1<\/pre>\n<p>Results<br \/>\nLab3 Ping r3 192.168.22.2: Yes<br \/>\nLab3 Ping r2 192.168.22.1: No return route<br \/>\nLab3 Ping r2 192.168.11.2: No return route<br \/>\nLab3 Ping r1 192.168.11.1: No return route<br \/>\nLab3 Ping Lab2 192.168.11.101: No return route<br \/>\nr3 ping r2 192.168.22.1: Yes<br \/>\nr3 ping r2 192.168.11.2: No return route<\/p>\n<h3>Router #2<\/h3>\n<p>Starting Specs<br \/>\nLab3 Ping r3 192.168.22.2: Yes<br \/>\nLab3 Ping r2 192.168.22.1: No return route<br \/>\nLab3 Ping r2 192.168.11.2: No return route<br \/>\nLab3 Ping r1 192.168.11.1: No return route<br \/>\nLab3 Ping Lab2 192.168.11.101: No return route<br \/>\nr3 ping r2 192.168.22.1: Yes<br \/>\nr3 ping r2 192.168.11.2: No return route<br \/>\nr2 Ping r3 192.168.22.2: Yes<br \/>\nr2 Ping r3 192.168.33.1: No route to host<br \/>\nr2 Ping Lab3 192.168.33.20: No route to host<br \/>\nr2 Ping r1 192.168.11.1: Yes<br \/>\nr2 Ping Lab1 192.168.1.200: No route to host<br \/>\nLab2 ping Lab3 192.168.33.20: No route to host<\/p>\n<h4>Route .33.0 Network<\/h4>\n<pre>r2(config)#ip route 192.168.33.0 255.255.255.0 192.168.22.2<\/pre>\n<p>Lab3 Ping r3 192.168.22.2: Yes<br \/>\nLab3 Ping r2 192.168.22.1: Yes<br \/>\nLab3 Ping r2 192.168.11.2: Yes<br \/>\nLab3 Ping r1 192.168.11.1: No return route<br \/>\nLab3 Ping Lab2 192.168.11.101: No return route<br \/>\nr3 ping r2 192.168.22.1: Yes<br \/>\nr3 ping r2 192.168.11.2: No return route<br \/>\nr2 Ping r3 192.168.22.2: Yes<br \/>\nr2 Ping r3 192.168.33.1: Yes<br \/>\nr2 Ping Lab3 192.168.33.20: Yes<br \/>\nr2 Ping r1 192.168.11.1: Yes<br \/>\nr2 Ping Lab1 192.168.1.200: No return route<br \/>\nLab2 ping Lab3 192.168.33.20: No route to host<br \/>\nRoute all unknowns (including .11.0) through Router 1.<\/p>\n<pre>r2(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.1<\/pre>\n<p>&nbsp;<\/p>\n<h2>Show Commands<\/h2>\n<pre>show ip route<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Understanding the Purpose of Routing Stop broadcasts Allow packets to move from one network to another By default, routers only know what they are plugged into How Static Routing Can Help Manually tell routers what networks they can reach r2(config)#ip route 192.168.33.0 255.255.255.0 192.168.22.2 192.168.33.0 = Destination Network 255.255.255.0 = Destination Subnet Mask 192.168.22.2 = ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=362\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":12,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":382,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions\/382"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}