{"id":97104,"date":"2020-10-16T08:42:19","date_gmt":"2020-10-16T06:42:19","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov"},"modified":"2020-10-16T08:42:19","modified_gmt":"2020-10-16T06:42:19","slug":"packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov","title":{"rendered":"Packet Tracer. Laboratory Work: Configuring Floating Static Routes","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<h2>Network Topology<\/h2>\n<p>\n<img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/d60e4594ba0528414e58fff3ccb1e8cd.jpeg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<h2>Since I have already learned to \"somewhat\" port QEMU to JavaScript, this time it was decided to do it wisely and not repeat past mistakes.<\/h2>\n<p><\/p>\n<ol>\n<li>Creating the Default Static Route<\/li>\n<li>Deploying a Floating Static Route<\/li>\n<li>Testing the Switch to a Floating Static Route upon Failure of the Primary Route<\/li>\n<\/ol>\n<p><\/p>\n<h2>General information<\/h2>\n<p>\nSo let's start with a few words about what a static and floating route actually is. Unlike dynamic routing, static routing requires manually constructing a route to a specific network. A floating static route serves to provide a backup path to the destination network in case the primary route fails.<\/p>\n<p>In our example, the border router currently has only directly connected routes to ISP1, ISP2, LAN_1, and LAN_2 networks.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/a696205f8c9e062d9ada51fda3de9e21.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h2>Creating the Default Static Route<\/h2>\n<p>\nBefore discussing the backup route, we first need to establish the primary route. Let the primary route from the border router go through ISP1 to the Internet, while the route through ISP2 will be the backup. To do this, we will set a default static route on the border router in global configuration mode:<\/p>\n<pre><code class=\"xml\">Edge_Router&gt;en\nEdge_Router#conf t\nEdge_Router(config)#ip route 0.0.0.0 0.0.0.0 s0\/0\/0 \n<\/code><\/pre>\n<p>\nwhere:<\/p>\n<ul>\n<li>the first 32 bits of zeros represent the destination network address; <\/li>\n<li>the second 32 bits of zeros represent the subnet mask; <\/li>\n<li>s0\/0\/0 \u2014 the outgoing interface of the border router connected to the ISP1 network. <\/li>\n<\/ul>\n<p>\nThis entry indicates that if packets arriving at the border router from LAN_1 or LAN_2 contain a destination network address not present in the routing table, they will be forwarded through the s0\/0\/0 interface. <\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/bc28d8bfebe2fc75d81ab0817588ba15.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nLet's check the routing table of the border router and send an echo request to <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/en\/server\/\"   title=\"web server\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"1158\">web server<\/a> from PC-A or PC-B:<\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/9cad9e3ba223c822c5e8d5f87e55e5b9.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n<img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/f38b705b02f9c820bc1eb6db23276e19.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nWe see that a default static route entry has been added to the routing table (indicated by the S* entry). We will trace the route from PC-A or PC-B to the web-<a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/en\/server\/dts-los-angeles\/\"   title=\"server\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"3663\">server<\/a>:<\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/449b5e7228c87f188d421378a5e2465c.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nThe first hop is from PC-B to the local IP address of the border router 192.168.11.1. The second hop is from the border router to 10.10.10.1 (ISP1). Remember this, we will compare the hops later.<\/p>\n<h2>Deploying a Floating Static Route<\/h2>\n<p>\nNow that we've set up the primary static route, let's create a floating static route through the ISP2 network. Creating a floating static route is no different from setting up a regular default static route, except that in the former, we also specify the administrative distance. The administrative distance indicates the reliability of the route. The fact is, the administrative distance of a static route is one, which means it has absolute priority over dynamic routing protocols, which have a much higher administrative distance, except for local routes \u2014 their distance is zero. Therefore, when creating a floating static route, the administrative distance should be set to a value greater than one, for example, 5. Thus, the floating route will not take priority over the primary static route, but during its unavailability, the default route will be considered primary.<\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/9929fbcf1bb5d27609d41cb1355142d9.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nThe syntax for configuring a floating static route is as follows:<\/p>\n<pre><code class=\"xml\">Edge_Router(config)#ip route 0.0.0.0 0.0.0.0 s0\/0\/1 5<\/code><\/pre>\n<p>\nwhere: <\/p>\n<ul>\n<li>5 is the value for the administrative distance;<\/li>\n<li>s0\/0\/1 is the outgoing interface of the edge router connected to the ISP2 network.<\/li>\n<\/ul>\n<p>\nIt's important to note that <u>while the primary route is operational, the floating static route will not be displayed in the routing table.<\/u>To illustrate this further, let's display the contents of the routing table when the primary route is functioning correctly:<\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/e2d4a77200450fcee35a9046c2c6998f.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nIt is evident that the routing table still shows the default primary static route with the outgoing interface Serial0\/0\/0, and no other static routes are displayed in the routing table.<\/p>\n<h2>Testing the Switch to a Floating Static Route upon Failure of the Primary Route<\/h2>\n<p>\n<b>Now, the most interesting part:<\/b> let's simulate a failure of the primary route. This can be done by disabling the interface at the software level or simply disconnecting the connection between the router and ISP1. We will disable the Serial0\/0\/0 interface of the primary route:<\/p>\n<pre><code class=\"xml\">Edge_Router&gt;en\nEdge_Router#conf t\nEdge_Router(config)#int s0\/0\/0\nEdge_Router(config-if)#shutdown\n<\/code><\/pre>\n<p>\n... and immediately check the routing table:<\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/961f636462173a5551194c78378782e1.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nThe figure above shows that after the failure of the main static route, the outgoing interface Serial0\/0\/0 changed to Serial0\/0\/1. In the first traceroute we performed earlier, the next hop from the border router was to the IP address 10.10.10.1. Let's compare the hops by performing a traceroute using the backup route:<\/p>\n<p><img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/5b204b0a79c5ea416622b3ff5c954bee.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nNow the hop from the border router to the web server is through the IP address 10.10.10.5 (ISP2).<\/p>\n<p>Of course, static routes can be viewed by displaying the router's current configuration:<\/p>\n<pre><code class=\"xml\">Edge_Router&gt;en\nEdge_Router#show run\n<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"Packet Tracer. Laboratory Work: Configuring Floating Static Routes\" src=\"\/wp-content\/uploads\/2020\/10\/a4bca44fd296c69f69b6e75c421c0ab0.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/523534\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f \u0441\u0435\u0442\u0438 \u0417\u0430\u0434\u0430\u0447\u0438 \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u0440\u0438 \u043e\u0442\u043a\u0430\u0437\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u041e\u0431\u0449\u0438\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0436\u0435 \u0442\u0430\u043a\u043e\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0441\u0435\u0442\u044c. \u041f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0439 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":97105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-97104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f \u0441\u0435\u0442\u0438\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Packet Tracer. \u041b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430: \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f \u0441\u0435\u0442\u0438\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-10-16T06:42:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-10-16T06:42:19+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Packet Tracer. Laboratory Work: Configuring Floating Static Routes | ProHoster","description":"Network Topology","canonical_url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Packet Tracer. \u041b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430: \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 | ProHoster","og:description":"\u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f \u0441\u0435\u0442\u0438","og:url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/packet-tracer-laboratornaya-rabota-nastrojka-plavayushhih-staticheskih-marshrutov","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-10-16T06:42:19+00:00","article:modified_time":"2020-10-16T06:42:19+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"97104","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 10:27:23","updated":"2026-02-22 15:29:42","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/97104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=97104"}],"version-history":[{"count":2,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/97104\/revisions"}],"predecessor-version":[{"id":162191,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/97104\/revisions\/162191"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media\/97105"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=97104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=97104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=97104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}