{"id":4035,"date":"2024-01-08T11:33:21","date_gmt":"2024-01-08T11:33:21","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=4035"},"modified":"2024-01-08T11:33:49","modified_gmt":"2024-01-08T11:33:49","slug":"ping-scan-a-subnet-simple","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=4035","title":{"rendered":"Ping Scan a Subnet &#8211; Simple"},"content":{"rendered":"\n<p>If you need to perform a Ping scan of a subnet, you can use the following command, its quick and dirty approach, although its not really that quick when it comes to actually running. The below will scan the subnet 192.168.1.0\/24, from 192.168.1.1 to 192.168.1.254.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip; done<\/code><\/pre>\n\n\n\n<p>If you want to speed things up a bit, you can add the &#8220;-t 1&#8221; timeout option, so it doesn&#8217;t wait for the default timeout, but you might reduce the accuracy of the results, if something doesn&#8217;t immediately respond which may be the case if those two hosts have not got each other&#8217;s MAC addresses in their ARP cache and need to learn it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for ip in $(seq 1 254); do ping -c 1 -t 1 192.168.1.$ip; done<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you need to perform a Ping scan of a subnet, you can use the following command, its quick and dirty approach, although its not really that quick when it comes to actually running. The below will scan the subnet 192.168.1.0\/24, from 192.168.1.1 to 192.168.1.254. If you want to speed things up a bit, you &#8230; <a title=\"Ping Scan a Subnet &#8211; Simple\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=4035\" aria-label=\"Read more about Ping Scan a Subnet &#8211; Simple\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,20],"tags":[],"class_list":["post-4035","post","type-post","status-publish","format-standard","hentry","category-linux","category-random"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4035"}],"version-history":[{"count":2,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4035\/revisions"}],"predecessor-version":[{"id":4037,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4035\/revisions\/4037"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}