Quick Reference Guide

System Management Commands | 61
show mac-addr-table
This command displays the forwarding database entries. If the command is entered with no parameter,
the entire table is displayed. the same as entering the optional all parameter. Alternatively, you can
enter a MAC address to display the table entry for that address and all entries following it.
Syntax
show mac-addr-table [macaddr | all] [interface unit/slot/port | vlan VLAN_ID | count]
Parameters
Mode
Privileged Exec
Example
Figure 5-15. Example of Output from the show mac-addr-table all Command
Field
Descriptions:
Mac Address—A unicast MAC address for which the switch has forwarding and or filtering information.
The format is 6 or 8 two-digit hexadecimal numbers that are separated by colons, for example
01:23:45:67:89:AB. In an IVL system, the MAC address is displayed as 8 bytes.
In an SVL system,
this will display the system's address aging timeout value in seconds.
Interface—The Unit/Slot/Port at which this address was learned.
show logging traplogs Displays trap summaries (number of traps since last reset and last view) and trap
details.
show tech-support
Displays the output of many show commands, including
show logging.
macaddr
(OPTIONAL) Enter a 6-byte MAC address.
all (OPTIONAL) Enter all to get results for all interfaces.
interface unit/slot/port
(OPTIONAL) To show MAC addresses on a particular interface, enter the
keyword
interface followed by the interface unit, slot, and port. This can
be a physical or logical interface.
vlan VLAN_ID
(OPTIONAL) To show MAC addresses in a particular VLAN, enter the
keyword
vlan followed by the VLAN ID.
count
(OPTIONAL) Display Multicast Forwarding Database (MFDB) count.
(S50-TAC-8) #show mac-addr-table all
Mac Address Interface IfIndex Status
----------------------- --------- ------- ------------
00:01:00:01:E8:D5:A1:51 0/3/1 401 Management
00:01:00:03:6C:13:91:31 1/0/30 30 Learned
00:01:00:D0:01:97:2C:0A 1/0/30 30 Learned
00:04:00:01:E8:D5:9E:D2 VLAN 4 434 Management
Note: IVL (Independent VLAN Learning) allows unicast address-to-port mappings to be
created based on a MAC address in conjunction with a VLAN ID. In an IVL system, the
MAC address is displayed as 8 bytes.
Note: The “0/3/1” in the Interface column references the CPU. See Figure 5-15 and
Figure 5-17.