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

  获取mac地址

winodws  getmac

linux ifconfig -a

HWaddr 值

 

ens192 Link encap:Ethernet HWaddr 00:50:56:9b:cc:81
inet addr:103.95.254.153 Bcast:103.95.254.159 Mask:255.255.255.240
inet6 addr: fe80::250:56ff:fe9b:cc81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2094616146 errors:0 dropped:71 overruns:0 frame:0
TX packets:2004667976 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:483313572381 (483.3 GB) TX bytes:585855449804 (585.8 GB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:11451620428 errors:0 dropped:0 overruns:0 frame:0
TX packets:11451620428 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:3917381403627 (3.9 TB) TX bytes:3917381403627 (3.9 TB)

 

 


 

 

 

 

在线网络计算器 | TCP/IP子网掩码计算换算 —在线工具 https://www.sojson.com/convert/subnetmask.html

网络和IP地址计算器

显示网络,广播,第一次和最后一个给定的网络地址

在网络掩码“位格式”也被称为CIDR格式(CIDR=无类别域间路由选择)。

 

 

192.168.11.x192.168.22.x 11 

共享 非研发 22 专线 研发 

 

怎么查询局域网内全部电脑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

 

posted @ 2018-05-20 12:08  papering  阅读(1522)  评论(0编辑  收藏  举报