I have a machine on my network that needs to create a list of all mac addresses connected to the network. This is running OSX when I run the arp command it doesn't always display everything connected sometimes only the broadcast ( However if I run the command on the DHCP server everything gets displayed.

The DHCP server is running Zentyal Linux. Are there any option I need to enable to allow anyone to scan the network?

Many thanks


mac adress is added to arp table only after you send something to that machine. That's why it is empty on common machine (no communication) and full on server (dhcp negotiation with clients).

Simple arp isn't suitable for what you trying to do

0 is the netmask, not the broadcast. And the arp-cache entries are removed after some time when they are not used. To get all active mac-addresses in your subnet, you can create a loop with i=1..254 with ping -c 1 192.168.8.$i (assuming your net is

  • 1
    You can actually ping the broadcast address e.g. ping -b 192.168.x.255 – Marki Aug 18 '13 at 18:11
  • The broadcast ping is usually allowed to the root user only. – ott-- Aug 18 '13 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.