> This will only work on a local network: > once you have the IP address, you can do an arp -v > > You cannot get the MAC address of a routed IP address, it only exist on a > local network. Heres the code snippet I've used to walk a router's MAC table: snmpwalk -v 1 -c public ${GWADDR} ipNetToMediaPhysAddress \ |grep ${IPADDR} |awk '{print $4}' ${GWADDR} is your router's IP and ${IPADDR} is the target's IP. This allows you to qets MACs in another network. Would probably only work for one hop; everything I have tried it on was only a single hop away. ------------------------------------------------------------------------------ "This electronic message transmission contains confidential or privileged information from Mount Carmel . The information is intended for use by the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify us immediately by telephone (614-234-8700) or by electronic mail (exchange@xxxxxxxx)." ============================================================================== _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos