Cisco – List of directly connected network devices by mac/ip

arpciscomac address

I need a list of all devices that are directly connected to the cisco device I'm connected to through serial. I tried the arp table, but it contains more entries than I want since it spans multiple switches. I have no idea how to know which one is an end user device and which one is another network device.

I'm basically crawling a network and I need to know where to go next.

EDIT:
This is a general cisco-device question. I want to do this from routers, switches and other.

I'm running the commands on a cisco device, looking for any device (not necessarily a cisco device) that is directly connected. And I would also like to know which ones of those devices are other network devices (regardless of brand) and which ones are end users.

Best Answer

You can get some intel on it with the command show mac-address-table vlan <number>. It shows all the dynamically learned MACs and the ports they were learned on. You could then decide, based on your network, if said ports are connected to a switch or end device.