MAC Address of device when turned off

linux-networkingmac addressnetworking

Is it possible to get a list of MAC addresses of devices connected to a network, even though the device is currently turned off? The device has power so I could do a wake-on-lan. I'm trying to get something like this to work in Linux.

Using nmap would only give me a list of the devices that are powered on and got an IP address, but I would like to get a list of ALL devices in any power state.

Best Answer

Sometimes you can get lucky and check the arp-cache in your switch or router, it may be hanging on to the unexpired arp-entry for that IP address. Your DHCP server usually has that information as well, though it depends on what you're using. Other then that, sometimes the device actually has the MAC address printed on the box.