zoukankan      html  css  js  c++  java
  • ping获取远程主机MAC地址 规格严格

    比如要查找IP为192.168.0.72的主机的MAC地址,可以这样:

    先ping一下,让它进到你的ARP表里   
        
    C:\Documents and Settings\lenovo>ping 192.168.0.72

    Pinging 192.168.0.72 with 32 bytes of data:

    Reply from 192.168.0.72: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.72: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.72: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.72: bytes=32 time<1ms TTL=64

    Ping statistics for 192.168.0.72:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 0ms, Average = 0ms

    下一步:

    C:\Documents and Settings\lenovo>arp -a 192.168.0.72

    Interface: 192.168.0.148 --- 0x20002
       Internet Address       Physical Address       Type
       192.168.0.72           00-14-2a-3e-08-cf      dynamic

  • 相关阅读:
    验证码
    九九乘法表
    P121 6.7 第一题和第二题
    二分搜索法(转载自vanezkw)
    用for循环打印菱形
    用while循环语句计算1!+2!+……20!之和
    数的阶乘之和
    9.29
    doGet与doPost的区别
    JavaScript习题
  • 原文地址:https://www.cnblogs.com/diyunpeng/p/1635472.html
Copyright © 2011-2022 走看看