{"id":970,"date":"2024-05-28T20:05:57","date_gmt":"2024-05-28T20:05:57","guid":{"rendered":"https:\/\/www.spktechfit.com\/?p=970"},"modified":"2024-06-14T03:19:56","modified_gmt":"2024-06-14T03:19:56","slug":"10-ip-routing-part-3","status":"publish","type":"post","link":"https:\/\/www.spktechfit.com\/?p=970","title":{"rendered":"10 . IP Routing Part 3"},"content":{"rendered":"<h2>Route Types and Administrative Distance<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-971 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/10.1.png\" alt=\"\" width=\"454\" height=\"178\" \/><\/p>\n<h3>Connected and Local Entries<\/h3>\n<p><strong>Connected:<\/strong> the subnet is physically connected to the switch and there is no need for a next hop device<br \/>\n<strong>Local:<\/strong> the subnet is configured inside the switch. This could be a loopback interface or Switch Virtual Interface (SVI).<\/p>\n<h3>Static Routes<\/h3>\n<p>You need a static route when the destination network is not directly connected or physically connected to the switch or router, and no routing protocols like OSPF are advertising the route.<\/p>\n<p><strong>Static route command:<\/strong><br \/>\nIp route &lt;remote network\/mask&gt; &lt;next hop&gt; vrf &lt;vrf id&gt;<br \/>\nEG: <em><strong>ip route 10.1.20.0\/24 10.1.12.2 vrf table1<\/strong><\/em><\/p>\n<p>The switch\/router on the other side also needs the static route:<br \/>\n<em><strong>ip route 10.1.10.0\/24 10.1.12.1 vrf table1<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-972 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/10.2.png\" alt=\"\" width=\"618\" height=\"235\" \/><\/p>\n<h3>Administrative Distance<\/h3>\n<p>If there are multiple routes to the same destination in the routing table, the router will use the path with the lowest Administrative Distance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-973 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/10.3.png\" alt=\"\" width=\"200\" height=\"243\" \/><\/p>\n<p><strong>Floating Static Routes<\/strong><br \/>\nManipulating the administrative distance can be used to create primary and backup routes. An example of when to use this might be if you have two connected routes (same administrative distance) to the same destination but one route has higher bandwidth. In this case you can manually set the administrative distance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-974 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/10.4.png\" alt=\"\" width=\"175\" height=\"270\" \/><\/p>\n<p>In the example above 10.1.251.2 has a higher bandwidth.<br \/>\nThe config would be:<br \/>\n<em><strong>Ip route 0.0.0.0\/0 10.1.251.2\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0(leave administrative distance as default, 1)<\/strong><\/em><br \/>\n<em><strong>Ip route 0.0.0.0\/0 10.1.252.2 distance 10\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0(set the administrative distance to 10)<\/strong><\/em><\/p>\n<p>&nbsp;<\/p>\n<h3>Scalability Issues<\/h3>\n<p>Working with static routes is okay for smaller more simple networks, but for an organisation with hundreds or thousands of subnets, static routing is not an efficient way to manage routing. Everything is manual with no dynamic failover. And human factor is a big thing, if you make a mistake configuring the routes you can take down the network!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-975 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/10.5.png\" alt=\"\" width=\"591\" height=\"143\" \/><\/p>\n<p>Dynamic routing protocols are far more scalable handling thousands or even millions of routes across routing devices. They can automatically failover to alternate paths with little to no downtime.<\/p>\n<p>&nbsp;<\/p>\n<h2>Routing Protocols<\/h2>\n<h3>Interior and Exterior Gateway Protocols<\/h3>\n<p>An Autonomous System (AS) is a collection of routers under a common administrative domain. EG: your Internet Service Provider (ISP) owns its own internal network, they have autonomy over the system, it is their AS.<\/p>\n<p><strong>Interior Gateway Protocol<br \/>\n<\/strong>To route packets inside an AS, each company uses an Interior Gateway Protocol (IGP). Examples of IGP:<\/p>\n<ul>\n<li>RIP: Routing Information Protocol<\/li>\n<li>IS-IS: Intermediate System &#8211; Intermediate System<\/li>\n<li>OSPF: open Shortest Path First<\/li>\n<\/ul>\n<p><strong>Exterior Gateway Protocol (EGP)<\/strong><br \/>\nTo route traffic from their internal AS to the internet network, companies use EGP. The only EGP currently used is:<\/p>\n<ul>\n<li>BGP: Border Gateway Protocol<\/li>\n<\/ul>\n<p><strong>Distance Vector Routing Protocols<\/strong><br \/>\nIn this method the router advertises its distance from each network and the direction the packets must travel to get to that network. RIP used this method and measured in &#8220;Hop Count&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-976 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/10.6.png\" alt=\"\" width=\"613\" height=\"307\" \/><\/p>\n<p>Distance Vector RIP routers are not aware of the entire network topology, they only know their directly connected routing peers. Distance Vector protocols include:<\/p>\n<ul>\n<li>RIP<\/li>\n<li>RIPv2<\/li>\n<li>RIPng (next generation)<\/li>\n<\/ul>\n<p><em><strong>AOS-CX does not support any Distance Vector protocols due to the lack of security, performance and limited scalability.<\/strong><\/em><\/p>\n<p><strong>Link State Routing Protocols<\/strong><br \/>\nRouters that run Link State routing protocols possess information about the complete network topology. This allows them to independently calculate their routing table using the Dijkstra algorithm to select the best path for each destination. These protocols have much faster convergence times and are more scalable then Distance Vector protocols. Link State protocols include:<\/p>\n<ul>\n<li>OSPFv2: for IPv4<\/li>\n<li>OSPFv3: for IPv6<\/li>\n<li>IS-IS: this is far less common than OSPF<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Route Types and Administrative Distance Connected and Local Entries Connected: the subnet is physically connected to the switch and there is no need for a next hop device Local: the subnet is configured inside the switch. This could be a loopback interface or Switch Virtual Interface (SVI). Static Routes You need a static route when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/970"}],"collection":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=970"}],"version-history":[{"count":1,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions"}],"predecessor-version":[{"id":977,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions\/977"}],"wp:attachment":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}