只知道MAC地址获取IP [英] Get IP with just knowing MAC address

查看:132
本文介绍了只知道MAC地址获取IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个批处理文件,这给了我一个IP回来,但我只知道MAC地址

  ARP -a

我不会工作,因为我从来没有ping通的IP了。我想与字面上只知道MAC地址搜索它在网络中


  

信息:该IP是静态



解决方案

  FOR / F跳过= 3 delims = \\%% A有(NET VIEW ^ | FINDSTR / V / C:')命令成功完成做回声%% A>> %USERPROFILE%\\桌面\\ computerlist.txt

打开列表的计算机上。

  WMIC /node:@computerlist.txt nicconfig,其中MACADDRESS ='什么:什么:等'获得ip地址/格式:htable

要在指定的MACADDRESS获得IP

  WMIC /node:@computerlist.txt nicconfig获取ip地址/格式:htable

要获得ip地址的计算机上的所有MACAddresses。

I'm trying to write a batch file, that gives me an IP back, but I just know the MAC address

arp -a

wont work for me, because I never pinged that IP before. I want to search for it in the network with literally just knowing the MAC address.

Information: The IP is static.

解决方案

for /f "skip=3 delims=\" %%A in ('net view ^| findstr /v /C:"The command completed successfully"') do Echo %%A >> "%userprofile%\desktop\computerlist.txt"

Lists turned on computers.

 wmic /node:@computerlist.txt nicconfig where macaddress='whatever:whatever:etc' get ipaddress /format:htable

To get IP for a specified MACAddress

 wmic /node:@computerlist.txt nicconfig get ipaddress /format:htable

to get the IPAddress for all MACAddresses on a computer.

这篇关于只知道MAC地址获取IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆