{"id":3885,"date":"2023-09-16T08:17:15","date_gmt":"2023-09-16T05:17:15","guid":{"rendered":"https:\/\/www.virtono.com\/community\/?p=3885"},"modified":"2023-09-15T08:57:34","modified_gmt":"2023-09-15T05:57:34","slug":"network-troubleshooting-via-command-line","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/","title":{"rendered":"Network Troubleshooting via Command Line"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" data-attachment-id=\"3893\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/network-troubleshooting-via-command-line-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?fit=1920%2C1080&amp;ssl=1\" data-orig-size=\"1920,1080\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Network-Troubleshooting-via-Command-Line-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?fit=750%2C422&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?resize=750%2C422&#038;ssl=1\" alt=\"Network Troubleshooting via Command Line\" class=\"wp-image-3893\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Network-Troubleshooting-via-Command-Line-1.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>In this tutorial, we will explore how to use Linux command line options for network troubleshooting. The CLI, also known as the terminal or shell, allows users to execute commands directly, making complex tasks simpler.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#The_Fundamentals\" title=\"The Fundamentals\">The Fundamentals<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#The_Significance_of_Network_Troubleshooting\" title=\"The Significance of Network Troubleshooting\">The Significance of Network Troubleshooting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#Linux_Command_Line_Tools_for_Network_Troubleshooting\" title=\"Linux Command Line Tools for Network Troubleshooting\">Linux Command Line Tools for Network Troubleshooting<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#ping\" title=\"ping\">ping<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#traceroute\" title=\"traceroute\">traceroute<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#netstat\" title=\"netstat\">netstat<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#Advanced_Network_Troubleshooting_Options\" title=\"Advanced Network Troubleshooting Options\">Advanced Network Troubleshooting Options<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#Limiting_the_Number_of_Pings\" title=\"Limiting the Number of Pings\">Limiting the Number of Pings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#Specifying_the_Packet_Size\" title=\"Specifying the Packet Size\">Specifying the Packet Size<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#Displaying_Listening_Sockets\" title=\"Displaying Listening Sockets\">Displaying Listening Sockets<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/#Final_Thoughts\" title=\"Final Thoughts\">Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"The_Fundamentals\"><\/span>The Fundamentals<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It&#8217;s important to understand what network troubleshooting entails before getting into the details. To ensure smooth communication and data exchange between devices, network troubleshooting is a methodical process used to fix networking issues.<\/p>\n\n\n\n<p>In comparison to the graphical user interface (GUI), which makes use of windows, icons, and menus, the <a href=\"https:\/\/www.virtono.com\/cloud-vps\">Linux<\/a> command line offers a more direct and powerful method of interacting with the operating system. It serves as a crucial tool for network troubleshooting as a result.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"The_Significance_of_Network_Troubleshooting\"><\/span>The Significance of Network Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Network troubleshooting is crucial in the digital age when the internet has become an integral part of our lives. By ensuring continuous and effective network connectivity, assists in resolving problems like slow internet speeds, connection drops, or network congestion.<\/p>\n\n\n\n<p>Although there are GUI-based tools for network troubleshooting, they frequently fall short in terms of strength and adaptability compared to command-line tools. The Linux command line excels in this situation, providing a number of commands that can quickly identify and fix network problems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Linux_Command_Line_Tools_for_Network_Troubleshooting\"><\/span>Linux Command Line Tools for Network Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Linux provides several command-line tools for network troubleshooting, including\u00a0<code>ping<\/code>,\u00a0<code>traceroute<\/code>, and\u00a0<code>netstat<\/code>. These commands are typically pre-installed in most Linux distributions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"ping\"><\/span>ping<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p><code>ping<\/code>\u00a0is a command-line utility that checks network connectivity between the host system and a target system or website. Here is the basic syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ping target<\/code><\/pre>\n\n\n\n<p>The target can be a domain name or an IP address. For example, to check the connectivity to Google, you can use:<\/p>\n\n\n\n<p>For IPv4:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ping www.google.com -4<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"232\" data-attachment-id=\"3886\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/screenshot-2023-09-15-at-08-30-52\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?fit=1856%2C574&amp;ssl=1\" data-orig-size=\"1856,574\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-09-15-at-08.30.52\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?fit=750%2C232&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?resize=750%2C232&#038;ssl=1\" alt=\"Network Troubleshooting via Command Line\" class=\"wp-image-3886\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?resize=1024%2C317&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?resize=300%2C93&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?resize=768%2C238&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?resize=1536%2C475&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.30.52.png?w=1856&amp;ssl=1 1856w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>For IPv6:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ping www.google.com -6<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"223\" data-attachment-id=\"3887\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/screenshot-2023-09-15-at-08-31-41\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?fit=2078%2C618&amp;ssl=1\" data-orig-size=\"2078,618\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-09-15-at-08.31.41\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?fit=750%2C223&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?resize=750%2C223&#038;ssl=1\" alt=\"Linux Command Line Tools for Network Troubleshooting\" class=\"wp-image-3887\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?resize=1024%2C305&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?resize=300%2C89&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?resize=768%2C228&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?resize=1536%2C457&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.31.41.png?resize=2048%2C609&amp;ssl=1 2048w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"traceroute\"><\/span>traceroute<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p><code>traceroute<\/code>\u00a0is a command-line utility that traces the route packets take from the host system to a target system or website, helping identify where a problem occurs. <a href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-use-tracert-traceroute\/\">Here is the basic syntax<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>traceroute target<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"258\" data-attachment-id=\"3888\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/screenshot-2023-09-15-at-08-33-28\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?fit=2366%2C814&amp;ssl=1\" data-orig-size=\"2366,814\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-09-15-at-08.33.28\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?fit=750%2C258&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?resize=750%2C258&#038;ssl=1\" alt=\"traceroute Network Troubleshooting\" class=\"wp-image-3888\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?resize=1024%2C352&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?resize=300%2C103&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?resize=768%2C264&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?resize=1536%2C528&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?resize=2048%2C705&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.33.28.png?w=2250&amp;ssl=1 2250w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"netstat\"><\/span>netstat<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p><code>netstat<\/code>\u00a0is a command-line utility that displays network connections, routing tables, and network interface statistics. Here is how you can use\u00a0<code><a href=\"https:\/\/en.wikipedia.org\/wiki\/Netstat\" target=\"_blank\" rel=\"noopener\">netstat<\/a><\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>netstat<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"80\" data-attachment-id=\"3889\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/screenshot-2023-09-15-at-08-37-00\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?fit=1516%2C162&amp;ssl=1\" data-orig-size=\"1516,162\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-09-15-at-08.37.00\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?fit=750%2C80&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?resize=750%2C80&#038;ssl=1\" alt=\"netstat Network Troubleshooting\" class=\"wp-image-3889\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?resize=1024%2C109&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?resize=300%2C32&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?resize=768%2C82&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.37.00.png?w=1516&amp;ssl=1 1516w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Advanced_Network_Troubleshooting_Options\"><\/span>Advanced Network Troubleshooting Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>These command-line tools also provide more complex options, which can improve your network troubleshooting process. These options include limiting the number of pings, specifying the packet size, and displaying listening sockets.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Limiting_the_Number_of_Pings\"><\/span>Limiting the Number of Pings<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>To limit the number of pings, you can use the\u00a0<code>-c<\/code>\u00a0option:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ping -c count target<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"281\" data-attachment-id=\"3890\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/screenshot-2023-09-15-at-08-40-02\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?fit=1970%2C738&amp;ssl=1\" data-orig-size=\"1970,738\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-09-15-at-08.40.02\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?fit=750%2C281&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?resize=750%2C281&#038;ssl=1\" alt=\"Limiting the Number of Pings\" class=\"wp-image-3890\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?resize=1024%2C384&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?resize=300%2C112&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?resize=1536%2C575&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.40.02.png?w=1970&amp;ssl=1 1970w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Specifying_the_Packet_Size\"><\/span>Specifying the Packet Size<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>To specify the packet size in bytes, you can use the\u00a0<code>-s<\/code>\u00a0option:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>ping -s size target<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Displaying_Listening_Sockets\"><\/span>Displaying Listening Sockets<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>To display only listening sockets with\u00a0<code>netstat<\/code>, you can use the\u00a0<code>-l<\/code>\u00a0option:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>netstat -l<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"157\" data-attachment-id=\"3891\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/network-troubleshooting-via-command-line\/attachment\/screenshot-2023-09-15-at-08-41-56\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?fit=1694%2C356&amp;ssl=1\" data-orig-size=\"1694,356\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-09-15-at-08.41.56\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?fit=750%2C157&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?resize=750%2C157&#038;ssl=1\" alt=\"netstat Displaying Listening Sockets\" class=\"wp-image-3891\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?resize=1024%2C215&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?resize=300%2C63&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?resize=768%2C161&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?resize=1536%2C323&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Screenshot-2023-09-15-at-08.41.56.png?w=1694&amp;ssl=1 1694w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The ability to troubleshoot network issues using the Linux command line is a potent and essential tool. You can swiftly identify and fix network problems with the help of commands like ping, traceroute, and netstat, ensuring continuous and seamless network connectivity. You can increase your productivity and efficiency by becoming proficient with these command-line tools.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explore how to use Linux command line options for network troubleshooting. The CLI, also known as the terminal or shell, allows users to execute commands directly, making complex tasks simpler. The Fundamentals It&#8217;s important to understand what network troubleshooting entails before getting into the details.<\/p>\n","protected":false},"author":8,"featured_media":3894,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[771,773,768,767,774,769,770,772],"class_list":["post-3885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-how-to","tag-linux-network-troubleshooting","tag-network-troubleshooting","tag-troubleshooting-linux-commands","tag-troubleshooting-linux-terminal","tag-troubleshooting-netstat","tag-troubleshooting-network-connectivity","tag-troubleshooting-ping","tag-troubleshooting-traceroute"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/Linux-Network-Troubleshooting-via-Command-Line.png?fit=360%2C240&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-10F","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2147,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/cron-run-linux-tools-and-commands-at-boot\/","url_meta":{"origin":3885,"position":0},"title":"Cron: Run Linux tools and commands at boot","author":"Shreyash Sharma","date":"December 16, 2020","format":false,"excerpt":"The Cron task planner with the variable time specification \"@reboot\" is suitable for scripts and background programs that are to be executed when the system is started. There are tasks under Linux that would be basically simple\u00a0solution but is anything but trivial because of the differences between the Linux distributions.\u00a0This\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/cron-jobs.png?fit=800%2C500&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/cron-jobs.png?fit=800%2C500&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/cron-jobs.png?fit=800%2C500&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/cron-jobs.png?fit=800%2C500&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3392,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/locations-of-common-log-files-on-linux\/","url_meta":{"origin":3885,"position":1},"title":"Locations of Common Log Files on Linux","author":"George B.","date":"May 25, 2023","format":false,"excerpt":"In this tutorial, we will take you on a journey through the labyrinth of directories and unveil the secret locations of common log files on Linux. Whether you're a beginner or an experienced user, this guide will equip you with the knowledge to easily access and analyze these crucial logs.\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Locations-of-Common-Log-Files-on-Linux.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Locations-of-Common-Log-Files-on-Linux.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Locations-of-Common-Log-Files-on-Linux.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":240,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/15-most-basic-linux-commands\/","url_meta":{"origin":3885,"position":2},"title":"15 Most Basic Linux commands","author":"Daniel Draga","date":"July 30, 2016","format":false,"excerpt":"Linux is different, I know you already know that, and if are on this article you\u2019ve taken your first step into the amazin world of Linux OS (little exaggeration). Here I am going to provide a common command list most commonly used in Linux with their brief introduction. # 1:\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/07\/unzip-cento.png?fit=505%2C250&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3981,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-deploy-argocd-on-kubernetes\/","url_meta":{"origin":3885,"position":3},"title":"How to Deploy ArgoCD on Kubernetes","author":"George B.","date":"October 3, 2023","format":false,"excerpt":"Let\u2019s get started with deploying ArgoCD on Kubernetes. With the rise of containerization and orchestration technologies, Kubernetes has become the de facto standard for container management. When it comes to Continuous Deployment (CD) in Kubernetes environments, ArgoCD stands out as an impressive tool. Designed specifically for Kubernetes, ArgoCD bridges the\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/10\/Deploy-ArgoCD-on-Kubernetes.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3599,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-suricata-on-ubuntu-22-04\/","url_meta":{"origin":3885,"position":4},"title":"How to install Suricata on Ubuntu 22.04","author":"George B.","date":"June 22, 2023","format":false,"excerpt":"Introduction We will walk you through the installation of Suricata on Ubuntu 22.04 to ensure that you have a strong network defense mechanism in place. We'll go over everything from updating system packages to configuring Suricata and automating its startup. By the end of this guide, you will have a\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-Suricata-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-Suricata-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-Suricata-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3373,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-mayastor-add-on-on-microk8s\/","url_meta":{"origin":3885,"position":5},"title":"How to install Mayastor Add-on on MicroK8s","author":"George B.","date":"May 22, 2023","format":false,"excerpt":"In this article, we will guide you through the step-by-step process of installing the Mayastor Add-on. MicroK8s, a lightweight Kubernetes distribution, offers a convenient way to deploy Kubernetes clusters for development and testing purposes. If you're looking to leverage containerized storage in your MicroK8s cluster, the Mayastor add-on can be\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-install-Mayastor-Add-on-on-MicroK8s.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-install-Mayastor-Add-on-on-MicroK8s.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-install-Mayastor-Add-on-on-MicroK8s.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=3885"}],"version-history":[{"count":2,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3885\/revisions"}],"predecessor-version":[{"id":3896,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3885\/revisions\/3896"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/3894"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=3885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=3885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=3885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}