Last Updated on August 7, 2021 by Admin 3
Which command would you use to see which switch interface is associated with a particular MAC address?
- show interface mac
- show mac
- show mac-address-table
- show ip interface
The show mac-address-table command displays a table of every learned MAC address, and the switch port associated with the MAC address. Sample output is as follows:
This output indicates that four MAC addresses have been learned by this switch, and the last column indicates the switch port over which each MAC address was learned, and for which frames destined for each MAC address will be forwarded. The MAC address table is built dynamically by examining the source MAC address of received frames. If the switch receives a MAC address not listed in this table, it will send the frame out all ports except the one from which it was originated.
The show ip interface command is a router command, and displays no information on MAC address tables.
The show interface mac and show mac commands are incorrect because they are not valid Cisco IOS commands.
LAN Switching Fundamentals
Describe and verify switching concepts