{"id":1265,"date":"2025-08-02T07:08:45","date_gmt":"2025-08-02T07:08:45","guid":{"rendered":"https:\/\/www.zframez.com\/articles\/?p=1265"},"modified":"2025-08-02T07:08:48","modified_gmt":"2025-08-02T07:08:48","slug":"routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway","status":"publish","type":"post","link":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway","title":{"rendered":"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway"},"content":{"rendered":"<body>\n<p class=\"wp-block-paragraph\"><strong>Next Hop, Exit Interface and Metric \u2013 Fields in a Routing Table<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the <a href=\"https:\/\/www.zframez.com\/articles\/routing\/network-address-routing-table\">previous <\/a><a href=\"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/understanding-network-addresses-and-routing-tables-in-ip-networks\">tutorial<\/a>, we discussed how <strong>network addresses<\/strong> are used in the routing table. In this one, we\u2019ll look into a few more fields you\u2019ll commonly see in a routing table \u2013 like <strong>Next Hop<\/strong>, <strong>Exit Interface<\/strong>, and <strong>Metric<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you haven\u2019t already gone through the basics of routing, static and dynamic routing, you can check this <a href=\"https:\/\/www.zframez.com\/articles\/routing\/routing-static-dynamic\">introduction to routing<\/a> first.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Next Hop<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Next hop<\/strong> simply means the next router (or next device) to which a packet should be forwarded in order to reach the destination network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a router receives a packet, it checks the destination IP and looks into its routing table. If the destination is not directly connected, it will send the packet to another router \u2013 and that router is called the <em>next hop<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?resize=1024%2C552&#038;ssl=1\" alt=\"Diagram showing three routers \u2014 R1 (1.1.1.1), R2 (1.1.1.2), and R3 (1.1.1.3) \u2014 connected to a common subnet. R2 connects to network 2.2.2.0\/24 and R3 connects to 3.3.3.0\/24. R1 forwards packets to these networks via next hops 1.1.1.2 and 1.1.1.3 respectively.\" class=\"wp-image-1259\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?resize=1024%2C552&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?resize=768%2C414&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?resize=1536%2C828&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?w=1633&amp;ssl=1 1633w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">R1 routing to remote networks via next-hop gateways R2 and R3<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the above topology :<br>R1 has IP 1.1.1.1\/24<br>R2 has IP 1.1.1.2\/24<br>R3 has IP 1.1.1.3\/24<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All three are connected to the same switch (so part of the same network).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>R2 is also connected to network 2.2.2.0\/24<\/li>\n\n\n\n<li>R3 is connected to network 3.3.3.0\/24<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, if we look from R1\u2019s perspective:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To reach 2.2.2.0\/24, R1 will send packets to R2, so <strong>1.1.1.2 <\/strong>becomes the<strong> next hop.<\/strong><\/li>\n\n\n\n<li>To reach 3.3.3.0\/24, it will send to R3, so <strong>1.1.1.3 is the next hop<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So in R1\u2019s routing table, we\u2019ll have something like:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.2.2.0\/24\u00a0\u00a0 via 1.1.1.2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.3.3.0\/24\u00a0\u00a0 via 1.1.1.3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can remember it this way:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Next hop = IP of the facing router you\u2019ll send the packet to.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also note: The <strong>next hop IP<\/strong> will always be on the same network as the interface we\u2019re sending the packet out from.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Exit Interface<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Exit interface<\/strong> is the interface on our router that will be used to send the packet out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if R1 is using interface eth0 to connect to R2 and R3, then the routing table may also show:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.2.2.0\/24\u00a0\u00a0 via 1.1.1.2\u00a0\u00a0 dev eth0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.3.3.0\/24\u00a0\u00a0 via 1.1.1.3\u00a0\u00a0 dev eth0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That just means \u2014 \u201cto reach this destination, send the packet via this interface, to this next hop.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In some setups (like point-to-point links), routers may only show the interface instead of next hop \u2014 but both serve the same purpose: <strong>how and where to forward the packet<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Metric<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Metric<\/strong> is used when there are multiple possible paths to reach the same destination.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s say a router has two ways to reach the same network. How does it decide which one to use?<br>It picks the one with the <strong>lowest metric<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of metric as the <strong>cost or distance<\/strong> to reach a network. Lower metric = preferred path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Different routing protocols calculate metric differently:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RIP<\/strong> uses hop count<\/li>\n\n\n\n<li><strong>OSPF<\/strong> uses bandwidth<\/li>\n\n\n\n<li><strong>EIGRP<\/strong> uses delay, bandwidth, and a few other things<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You don\u2019t need to go deep into how each protocol works right now \u2014 but just remember:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Routers use metric to choose the best path among multiple options.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Gateway<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The term <strong>Gateway<\/strong> can have slightly different meanings depending on the context.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Gateway as a general term for a router<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before the term \u201crouter\u201d became popular, people used the word <strong>gateway<\/strong> to refer to a device that forwards packets between networks. So in some explanations, especially older ones, you might still hear phrases like:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cThere are multiple gateways in the path to reach the destination.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, <strong>gateway just means a router<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Gateway as Next Hop<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Often, <em>gateway<\/em> is used in place of <em>next hop<\/em>.<br>For example, in the topology above, we can say:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cThe gateway to reach 2.2.2.0\/24 is 1.1.1.2\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So here, <strong>gateway and next hop are the same thing<\/strong> \u2014 the IP of the next router.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Gateway configured on a PC<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you assign an IP address to a PC, you usually also configure a <strong>default gateway<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IP address = 1.2.3.1\/24<\/li>\n\n\n\n<li>Gateway = 1.2.3.100<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here, the gateway is the IP of the router interface that the PC will use to send packets <strong>outside its own subnet<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Internally, when you set a gateway like this, the system automatically adds a <strong>default route<\/strong> in the PC\u2019s routing table:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">0.0.0.0\/0\u00a0\u00a0 via 1.2.3.100<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This default route means \u2014 \u201csend any packet that doesn\u2019t match a more specific route to 1.2.3.100.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So in this context, <strong>gateway is the next hop for the default route<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Summary<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Next Hop<\/strong> \u2192 IP address of the next router (on the same subnet) to send the packet to.<\/li>\n\n\n\n<li><strong>Exit Interface<\/strong> \u2192 The interface through which the packet should be sent.<\/li>\n\n\n\n<li><strong>Metric<\/strong> \u2192 Used to pick the best path when multiple routes exist.<\/li>\n\n\n\n<li><strong>Gateway<\/strong> \u2192 Can mean a router, the next hop IP, or the default router used by a PC.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n<\/body>","protected":false},"excerpt":{"rendered":"<p>Next Hop, Exit Interface and Metric \u2013 Fields in a Routing Table In the previous tutorial, we discussed how network addresses are used in the routing table. In this one, we\u2019ll look into a few more fields you\u2019ll commonly see in a routing table \u2013 like Next Hop, Exit Interface, and Metric. If you haven\u2019t [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"wp-custom-template-post-with-sidebar2","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[330],"tags":[],"class_list":["post-1265","post","type-post","status-publish","format-standard","hentry","category-networking-fundamentals"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway - Tutorials<\/title>\n<meta name=\"description\" content=\"Learn how routing decisions are made using fields like next hop, exit interface, metric, and gateway. This tutorial explains each with simple examples and a practical topology.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Next Hop, Exit Interface, Metric, and Gateway in Routing Tables\" \/>\n<meta property=\"og:description\" content=\"What do terms like next hop, metric, and gateway actually mean in a routing table? This beginner-friendly guide breaks it down with real examples and a clear network diagram.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\" \/>\n<meta property=\"og:site_name\" content=\"Tutorials\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/zframez\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-02T07:08:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-02T07:08:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV-1024x552.png\" \/>\n<meta name=\"author\" content=\"sajith achipra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@zframez\" \/>\n<meta name=\"twitter:site\" content=\"@zframez\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sajith achipra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\"},\"author\":{\"name\":\"sajith achipra\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/person\\\/8b3b88007644501771d2452d3cc80f41\"},\"headline\":\"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway\",\"datePublished\":\"2025-08-02T07:08:45+00:00\",\"dateModified\":\"2025-08-02T07:08:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\"},\"wordCount\":781,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Routing-table-from-R1s-POV-1024x552.png\",\"articleSection\":[\"Networking Fundamentals\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\",\"url\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\",\"name\":\"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway - Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Routing-table-from-R1s-POV-1024x552.png\",\"datePublished\":\"2025-08-02T07:08:45+00:00\",\"dateModified\":\"2025-08-02T07:08:48+00:00\",\"description\":\"Learn how routing decisions are made using fields like next hop, exit interface, metric, and gateway. This tutorial explains each with simple examples and a practical topology.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Routing-table-from-R1s-POV.png?fit=1633%2C880&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Routing-table-from-R1s-POV.png?fit=1633%2C880&ssl=1\",\"width\":1633,\"height\":880},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/networking-fundamentals\\\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/www.zframez.com\\\/articles\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#website\",\"url\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/\",\"name\":\"zframez tutorials\",\"description\":\"Learn networking bit by bit\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#organization\",\"name\":\"zframez technologies\",\"url\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/zframez-logo.jpg?fit=864%2C864&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.zframez.com\\\/articles\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/zframez-logo.jpg?fit=864%2C864&ssl=1\",\"width\":864,\"height\":864,\"caption\":\"zframez technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/zframez\\\/\",\"https:\\\/\\\/x.com\\\/zframez\",\"https:\\\/\\\/www.instagram.com\\\/zframez_technologies\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.zframez.com\\\/articles\\\/#\\\/schema\\\/person\\\/8b3b88007644501771d2452d3cc80f41\",\"name\":\"sajith achipra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g\",\"caption\":\"sajith achipra\"},\"sameAs\":[\"http:\\\/\\\/www.zframez.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway - Tutorials","description":"Learn how routing decisions are made using fields like next hop, exit interface, metric, and gateway. This tutorial explains each with simple examples and a practical topology.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway","og_locale":"en_US","og_type":"article","og_title":"Understanding Next Hop, Exit Interface, Metric, and Gateway in Routing Tables","og_description":"What do terms like next hop, metric, and gateway actually mean in a routing table? This beginner-friendly guide breaks it down with real examples and a clear network diagram.","og_url":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway","og_site_name":"Tutorials","article_publisher":"https:\/\/www.facebook.com\/zframez\/","article_published_time":"2025-08-02T07:08:45+00:00","article_modified_time":"2025-08-02T07:08:48+00:00","og_image":[{"url":"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV-1024x552.png","type":"","width":"","height":""}],"author":"sajith achipra","twitter_card":"summary_large_image","twitter_creator":"@zframez","twitter_site":"@zframez","twitter_misc":{"Written by":"sajith achipra","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#article","isPartOf":{"@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway"},"author":{"name":"sajith achipra","@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/person\/8b3b88007644501771d2452d3cc80f41"},"headline":"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway","datePublished":"2025-08-02T07:08:45+00:00","dateModified":"2025-08-02T07:08:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway"},"wordCount":781,"commentCount":0,"publisher":{"@id":"https:\/\/www.zframez.com\/articles\/#organization"},"image":{"@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage"},"thumbnailUrl":"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV-1024x552.png","articleSection":["Networking Fundamentals"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway","url":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway","name":"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway - Tutorials","isPartOf":{"@id":"https:\/\/www.zframez.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage"},"image":{"@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage"},"thumbnailUrl":"https:\/\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV-1024x552.png","datePublished":"2025-08-02T07:08:45+00:00","dateModified":"2025-08-02T07:08:48+00:00","description":"Learn how routing decisions are made using fields like next hop, exit interface, metric, and gateway. This tutorial explains each with simple examples and a practical topology.","breadcrumb":{"@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#primaryimage","url":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?fit=1633%2C880&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-from-R1s-POV.png?fit=1633%2C880&ssl=1","width":1633,"height":880},{"@type":"BreadcrumbList","@id":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/routing-table-fields-explained-next-hop-exit-interface-metric-and-gateway#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Tutorials","item":"https:\/\/www.zframez.com\/articles"},{"@type":"ListItem","position":2,"name":"Routing Table Fields Explained: Next Hop, Exit Interface, Metric, and Gateway"}]},{"@type":"WebSite","@id":"https:\/\/www.zframez.com\/articles\/#website","url":"https:\/\/www.zframez.com\/articles\/","name":"zframez tutorials","description":"Learn networking bit by bit","publisher":{"@id":"https:\/\/www.zframez.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.zframez.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.zframez.com\/articles\/#organization","name":"zframez technologies","url":"https:\/\/www.zframez.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/zframez-logo.jpg?fit=864%2C864&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/zframez-logo.jpg?fit=864%2C864&ssl=1","width":864,"height":864,"caption":"zframez technologies"},"image":{"@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/zframez\/","https:\/\/x.com\/zframez","https:\/\/www.instagram.com\/zframez_technologies\/"]},{"@type":"Person","@id":"https:\/\/www.zframez.com\/articles\/#\/schema\/person\/8b3b88007644501771d2452d3cc80f41","name":"sajith achipra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3d9f27c5311500982b6f19d03d0506f1c328f30f51d8d5f73f46577687fd81f8?s=96&d=mm&r=g","caption":"sajith achipra"},"sameAs":["http:\/\/www.zframez.com"]}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":633,"url":"https:\/\/www.zframez.com\/articles\/routing\/ospf-redistribution-commands","url_meta":{"origin":1265,"position":0},"title":"OSPF Configuration Example 4 : Redistribution Commands","author":"sajith achipra","date":"August 29, 2024","format":false,"excerpt":"Configuring Redistribution, E1 Metric, and Route Tags in OSPF In the tutorial \"Understanding OSPF Redistribution\" , we discussed different concepts in redistribution. In this one, we\u2019ll go through the various OSPF commands related to redistribution. We\u2019ll walk through a step-by-step process to configure redistribution in OSPF, focusing on scenarios like\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/08\/OSPF-Redistribution-Topology-3.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":117,"url":"https:\/\/www.zframez.com\/articles\/routing\/routing-static-dynamic","url_meta":{"origin":1265,"position":1},"title":"Introduction to Routing","author":"sajith achipra","date":"July 16, 2024","format":false,"excerpt":"Table of Contents What is routing? What is a routing table? What is Static Routing? Advantages of Static Routing Limitations of Static Routing What is Dynamic Routing? Advantages of Dynamic Routing Limitations of Dynamic Routing Understanding the Routing Concepts: This tutorial will guide you through the basic concepts of routing\u2026","rel":"","context":"In &quot;routing&quot;","block_context":{"text":"routing","link":"https:\/\/www.zframez.com\/articles\/category\/routing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/routing-table-of-a-cisco-router.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/routing-table-of-a-cisco-router.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/routing-table-of-a-cisco-router.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/routing-table-of-a-cisco-router.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/routing-table-of-a-cisco-router.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":1256,"url":"https:\/\/www.zframez.com\/articles\/networking-fundamentals\/understanding-network-addresses-and-routing-tables-in-ip-networks","url_meta":{"origin":1265,"position":2},"title":"Understanding Network Addresses and Routing Tables in IP Networks","author":"sajith achipra","date":"August 1, 2025","format":false,"excerpt":"Understanding Network Addresses and Their Role in Routing When we assign an IP address to a device, like 1.2.3.4\/24, it's not just about identifying a single machine. That IP belongs to a network, and the address 1.2.3.0 in this case is known as the network address. But why do we\u2026","rel":"","context":"In &quot;Networking Fundamentals&quot;","block_context":{"text":"Networking Fundamentals","link":"https:\/\/www.zframez.com\/articles\/category\/networking-fundamentals"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-of-a-PC-with-2-interfaces.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-of-a-PC-with-2-interfaces.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-of-a-PC-with-2-interfaces.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-of-a-PC-with-2-interfaces.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-of-a-PC-with-2-interfaces.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2025\/08\/Routing-table-of-a-PC-with-2-interfaces.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":129,"url":"https:\/\/www.zframez.com\/articles\/routing\/distance-vector-vs-link-state-routing-protocols","url_meta":{"origin":1265,"position":3},"title":"Distance Vector vs. Link State Routing Protocols","author":"sajith achipra","date":"July 16, 2024","format":false,"excerpt":"Table of Contents Distance Vector Routing Protocols How do distance vector routing protocols work? Link State Routing Protocols How do link state routing protocols work? Advantages and Disadvantages Distance Vector vs. Link State Routing Protocols: How They Work and Their Differences Routing protocols are categorized into two main types based\u2026","rel":"","context":"In &quot;routing&quot;","block_context":{"text":"routing","link":"https:\/\/www.zframez.com\/articles\/category\/routing"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":127,"url":"https:\/\/www.zframez.com\/articles\/routing\/routing-protocols","url_meta":{"origin":1265,"position":4},"title":"Introduction to Routing Protocols","author":"sajith achipra","date":"July 16, 2024","format":false,"excerpt":"Table of Contents What is a Routing Protocol? What are the Functions of a Routing protocol? Different Types of Routing Protocols Advantages of Using Routing Protocols Introduction to Routing Protocols: Functions, Types, and Advantages In the last tutorial, we learned about routing concepts. In this one, we\u2019ll focus on Routing\u2026","rel":"","context":"In &quot;routing&quot;","block_context":{"text":"routing","link":"https:\/\/www.zframez.com\/articles\/category\/routing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/Different-Types-of-Routing-Protocols.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/Different-Types-of-Routing-Protocols.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/Different-Types-of-Routing-Protocols.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/Different-Types-of-Routing-Protocols.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/Different-Types-of-Routing-Protocols.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/Different-Types-of-Routing-Protocols.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":292,"url":"https:\/\/www.zframez.com\/articles\/routing\/ospf-configuration-example","url_meta":{"origin":1265,"position":5},"title":"OSPF Configuration Example 1: Adjacency Formation Between Two Cisco Routers","author":"sajith achipra","date":"July 19, 2024","format":false,"excerpt":"Table of Contents OSPF Configuration Example 1: Adjacency Formation Between Two Cisco Routers Configuration Procedure About OSPF Configuration Why use loopback interfaces? OSPF Configuration Commands Adjacency Verification Understanding the \"show\" commands OSPF Configuration Example 1: Adjacency Formation Between Two Cisco Routers In previous chapters, you learned key OSPF concepts like\u2026","rel":"","context":"In &quot;ospf&quot;","block_context":{"text":"ospf","link":"https:\/\/www.zframez.com\/articles\/category\/routing\/ospf"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.zframez.com\/articles\/wp-content\/uploads\/2024\/07\/OSPF-adjacency-topology.png?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts\/1265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/comments?post=1265"}],"version-history":[{"count":2,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts\/1265\/revisions"}],"predecessor-version":[{"id":1267,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/posts\/1265\/revisions\/1267"}],"wp:attachment":[{"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/media?parent=1265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/categories?post=1265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zframez.com\/articles\/wp-json\/wp\/v2\/tags?post=1265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}