Switches maintain a database of MAC addresses, both manually configured (static) and dynamically learned entries. During troubleshooting, it may be helpful to investigate the entries in the MAC table.
To view the whole MAC table, use the following command from enable mode:
show mac-address-table
To list only the dynamically learned entries in the MAC table, use the following:
show mac-address-table dynamic