Find the machines that can be pinged in the LAN

Source: Internet
Author: User


Find a machine in the LAN that can ping www.2cto.com on the windows platform and use the for command. You can query the usage of the for command and directly enter /? C: \> for/l % I in (, 25) do ping-n 1-w 60 147.2.147.% I | find "Reply"> d: \ ping. log Note: % I in (255,) -- is to traverse the host bit from 1 ~ 255 of all IP-n -- ping times-w -- timeout often 192.168.0.% I -- traverse IP from 192.168.0.1 ~ All IP addresses of 192.168.0.255 | bat -- MPs queue. input the preceding result to the following command through the MPs queue> bat -- redirect and write the result to d: \ pingall. log File C: \ Documents ents and Settings \ Administrator> type d: \ ping. log Reply from 147.2.147.11: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.13: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.14: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.16: bytes = 32 time <1 ms TTL = 128 Reply from 147.2.147.22: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.24: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.28: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.29: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.31: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.32: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.35: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.38: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.40: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.11: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.13: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.14: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.16: bytes = 32 time <1 ms TTL = 128 Reply from 147.2.147.22: bytes = 32 time <1 ms TTL = 64 Reply from 147.2.147.24: bytes = 32 time <1 ms TTL = 64
Ping a network segment on Linux and check the echo. Use nmapnmap-sP-n 172.27.205.0/24

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.