Open tjhacker opened 4 years ago
Hi @tjhacker Hmm, it is possible but what would the requirement/purpoase be?
There is already the well known arping
tool which does this. For example;
# I can see the MAC address of my default gateway is 7c:ad:74:b0:31:d6
$arp -na
? (192.168.58.1) at 7c:ad:74:b0:31:d6 on en0 ifscope [ethernet]
# I can use arping to ping it by sending an ICMP echo request to that unicast MAC address but with the dest IP set to 255.255.255.255:
$arping -i en0 7c:ad:74:b0:31:d6
ARPING 7c:ad:74:b0:31:d6
60 bytes from 192.168.58.1 (7c:ad:74:b0:31:d6): icmp_seq=0 time=5.770 msec
60 bytes from 192.168.58.1 (7c:ad:74:b0:31:d6): icmp_seq=1 time=5.060 msec
60 bytes from 192.168.58.1 (7c:ad:74:b0:31:d6): icmp_seq=2 time=9.237 msec
^C
--- 7c:ad:74:b0:31:d6 statistics ---
3 packets transmitted, 3 packets received, 0% unanswered (0 extra)
rtt min/avg/max/std-dev = 5.060/6.689/9.237/1.825 ms
Is is possible to have a function similar to ping for layer 2 - just to check basic connectivity for broadcast and unicast?
ISSUE TYPE
VERSION DETAILS
SUMMARY
STEPS TO REPRODUCE