查询局域网内全部电脑IP和mac地址等信息

怎么查询局域网内全部电脑IP和mac地址等信息_百度经验 https://jingyan.baidu.com/article/54b6b9c0348e432d583b47c1.html

枚举ping

查询当前网段的所有在用IP - CSDN博客 https://blog.csdn.net/boomjane_testingblog/article/details/52576242

[root@admin40 after_fc_distributedB]# ping -b 192.168.1.255
connect: 网络不可达
[root@admin40 after_fc_distributedB]# arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.3.99             ether   10:7b:44:4f:af:09   C                     enp2s0
192.168.2.26             ether   dc:d9:16:27:46:ca   C                     enp2s0
192.168.3.212            ether   00:0e:c6:ce:85:e6   C                     enp2s0
192.168.2.233            ether   60:21:01:bb:7b:01   C                     enp2s0
192.168.3.103            ether   b8:97:5a:37:44:0b   C                     enp2s0
192.168.3.102            ether   b8:97:5a:37:46:01   C                     enp2s0
[root@admin40 after_fc_distributedB]# arp --help
Usage:
  arp [-vn]  [<HW>] [-i <if>] [-a] [<hostname>]             <-Display ARP cache
  arp [-v]          [-i <if>] -d  <host> [pub]               <-Delete ARP entry
  arp [-vnD] [<HW>] [-i <if>] -f  [<filename>]            <-Add entry from file
  arp [-v]   [<HW>] [-i <if>] -s  <host> <hwaddr> [temp]            <-Add entry
  arp [-v]   [<HW>] [-i <if>] -Ds <host> <if> [netmask <nm>] pub          <-''-

        -a                       display (all) hosts in alternative (BSD) style
        -e                       display (all) hosts in default (Linux) style
        -s, --set                set a new ARP entry
        -d, --delete             delete a specified entry
        -v, --verbose            be verbose
        -n, --numeric            don't resolve names
        -i, --device             specify network interface (e.g. eth0)
        -D, --use-device         read <hwaddr> from given device
        -A, -p, --protocol       specify protocol family
        -f, --file               read new entries from file or from /etc/ethers

  <HW>=Use '-H <hw>' to specify hardware address type. Default: ether
  List of possible hardware types (which support ARP):
    ash (Ash) ether (Ethernet) ax25 (AMPR AX.25) 
    netrom (AMPR NET/ROM) rose (AMPR ROSE) arcnet (ARCnet) 
    dlci (Frame Relay DLCI) fddi (Fiber Distributed Data Interface) hippi (HIPPI) 
    irda (IrLAP) x25 (generic X.25) infiniband (InfiniBand) 
    eui64 (Generic EUI-64) 
[root@myspark mydir]# 

  


for /L %i in (0,1,255) do ping -n 1 -w 250 192.168.1.%i


c# - Get All IP Addresses on Machine - Stack Overflow https://stackoverflow.com/questions/5271724/get-all-ip-addresses-on-machine

原文地址:https://www.cnblogs.com/rsapaper/p/9063050.html