Home> Common Problem> body text

How to use cmd to view all IP addresses in the LAN

醉折花枝作酒筹
Release: 2023-01-13 00:36:14
Original
57147 people have browsed it

Method: First enter "cmd" in the input field; then execute the "ipconfig/ALL" command in the window; then remember the ip address and execute "for /L %i IN (1,1,254) DO ping -w 2 -n 1 ip network segment"; finally execute "arp -a".

How to use cmd to view all IP addresses in the LAN

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

You don’t need to look at all the IPs in the LAN. For example, the gateway of the LAN is 192.168.0.1, and all the IPs in the LAN are in the range of 192.168.0.100 to 192.168.0.254. There are a total of 155 IP addresses.

How to check the IP of the computer being used in the LAN involves the following steps:

Click "Start" in the lower left corner of the computer, and then click "Run...".

How to use cmd to view all IP addresses in the LAN

Fill in "cmd" in the run window and click OK.

How to use cmd to view all IP addresses in the LAN

Enter the "ipconfig/ALL" command in the cmd command window and click the Enter key on the keyboard.

How to use cmd to view all IP addresses in the LAN

At this time, you will see the IP address of your computer in the cmd command window and write it down on paper.

How to use cmd to view all IP addresses in the LAN

At this time, enter "for /L %i IN (1,1,254) DO ping -w 2 -n 1 192.168.0.%i" in the cmd command window. Click the Enter key on the keyboard (note: I filled in 192.168.0.* based on the IP network segment of my computer).

How to use cmd to view all IP addresses in the LAN

Wait for a few minutes for the command to be processed, then enter "arp -a" in the cmd command window and click the Enter key on the keyboard.

How to use cmd to view all IP addresses in the LAN

At this time, you can see the IP address and physical address of the computer being used in the LAN.

How to use cmd to view all IP addresses in the LAN

For more computer-related knowledge, please visit theFAQcolumn!

The above is the detailed content of How to use cmd to view all IP addresses in the LAN. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!