ping 计算机名然后用ARP命令看一下就可以了,如
我先PING一下电脑名字,得出一个IP,然后查看一下就可以了,以下是在DOS中出现的结果。
C:\Documents and Settings\Admin>ping lin
Pinging lin [192.168.1.14] with 32 bytes of data:
Reply from 192.168.1.14: bytes=32 time<1ms TTL=128
Reply from 192.168.1.14: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.14:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
C:\Documents and Settings\Admin>ping 192.168.1.14
Pinging 192.168.1.14 with 32 bytes of data:
Reply from 192.168.1.14: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.14:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
C:\Documents and Settings\Admin>arp -a
Interface: 192.168.1.64 --- 0x2
Internet Address Physical Address Type
192.168.1.1 00-0a-eb-c5-5a-00 dynamic
192.168.1.14 00-e0-4c-df-e9-81 dynamic
C:\Documents and Settings\Admin>