Can I determine the current IP from a known MAC Address?

后端 未结 7 419
难免孤独
难免孤独 2021-02-01 03:06

I have a shell script which uses etherwake to wake up a machine on my local network. After the machine is awake, I\'m not sure of the IP address.

While trying to answer

相关标签:
7条回答
  • 2021-02-01 03:45

    I wrote a python module that can do this:

    >>> from ethip import ethip
    >>> print ethip.getip('00:1E:C9:56:3C:8E', '10.5.42.255')
    10.5.42.3
    

    I just makes rapid arp requests to find the ip, then caches what it finds. The code is on github.

    0 讨论(0)
提交回复
热议问题