I\'m looking for a way (with python) to obtain the layer II address from a device on my local network. Layer III addresses are known.
layer II
Layer III
The
A simple solution using scapy, to scan the 192.168.0.0/24 subnet is as follows:
from scapy.all import * ans,unans = arping("192.168.0.0/24", verbose=0) for s,r in ans: print("{} {}".format(r[Ether].src,s[ARP].pdst))