列出arp-table
arp
列出DHCP租约
cat /tmp/dhcp.leases
……并结合起来
for ip in $(arp | grep -v IP | awk '{print $1}'); do grep $ip /tmp/dhcp.leases; done