巧学活用网管工具
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人

3.利用ping命令(-a参数)获取计算机的NETBIOS网络名称

在知道目的主机的IP地址的前提下,利用带有-a参数的ping命令可以获取其NETBIOS主机名称,其结果在运用ping命令后的第1行返回。

例如:

            C:\WINDOWS>ping -a 192.168.1.100
            ping ing abc [192.168.1.100] with 32 bytes of data:
            Reply from 192.168.1.100: bytes=32 time<10ms TTL=128
            Reply from 192.168.1.100: bytes=32 time<10ms TTL=128
            Reply from 192.168.1.100: bytes=32 time<10ms TTL=128
            Reply from 192.168.1.100: bytes=32 time<10ms TTL=128
            ping statistics for 192.168.1.100:
            Packets: Sent = 4,Received = 4,Lost = 0 (0% loss),
            Approximate round trip times in milli-seconds:
            Minimum = 0ms,Maximum = 0ms,Average = 0ms

可以得知,IP地址为192.168.1.100的计算机的NETBIOS网络名称为“abc”。

再如:

            C:\WINDOWS>ping -a 192.168.0.23
            ping ing 9.localdomain [192.168.0.23] with 32 bytes of data:
            Reply from 192.168.0.23: bytes=32 time<10ms TTL=128
            Reply from 192.168.0.23: bytes=32 time<10ms TTL=128
            Reply from 192.168.0.23: bytes=32 time<10ms TTL=128
            Reply from 192.168.0.23: bytes=32 time<10ms TTL=128
            ping statistics for 192.168.0.23:
            Packets: Sent = 4,Received = 4,Lost = 0 (0% loss),
            Approximate round trip times in milli-seconds:
            Minimum = 0ms,Maximum = 0ms,Average = 0ms

可以得知,IP地址为192.168.0.23的计算机的NETBIOS网络名称为“9.localdomain”。