Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
639 views
in Technique[技术] by (71.8m points)

networking - 如何获取本地网络中所有有效IP地址的列表? [关闭](How to get a list of all valid IP addresses in a local network? [closed])

Is there a way to get a list of all valid IP addresses in a local network?

(有没有办法获取本地网络中所有有效IP地址的列表?)

I mean all IP addresses that each user is using in the network.

(我的意思是每个用户在网络中使用的所有IP地址。)

  ask by M.J.Ahmadi translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try following steps:

(请尝试以下步骤:)

  1. Type ipconfig (or ifconfig on Linux) at command prompt.

    (在命令提示符下键入ipconfig (或Linux上的ifconfig )。)

    This will give you the IP address of your own machine.

    (这将为您提供您自己计算机的IP地址。)

    For example, your machine's IP address is 192.168.1.6.

    (例如,您机器的IP地址是192.168.1.6。)

    So your broadcast IP address is 192.168.1.255.

    (因此,您的广播IP地址为192.168.1.255。)

  2. Ping your broadcast IP address ping 192.168.1.255 (may require -b on Linux)

    (Ping您的广播IP地址ping 192.168.1.255 (在Linux上可能需要-b ))

  3. Now type arp -a .

    (现在输入arp -a 。)

    You will get the list of all IP addresses on your segment.

    (您将获得网段上所有IP地址的列表。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...