Just a quicky this time :-)

Are you Ubuntu user and ever wanted to ping to a MAC address? Well.. I did :-)

Here's how.

First of all, get the arp-scan package:
 sudo apt-get install arp-scan

Then issue the following command:

ping -c 2 `arp-scan <ipaddress>/<number of network bits> | awk '/<mac address>/ {print $1}'` 

For Example:

ping -c 2 `arp-scan 10.146.0.0/17 | awk '/00:1f:29:44:ad:a4/ {print $1}'`

Advertisements