show mac address-table

This topic explains the command that displays the MAC address table, optionally filtered by a MAC address.

Syntax

show mac address-table [mac-address]

Parameter

mac-address: As an option, specify a MAC address for which the entries in the MAC address table must be displayed. The mac-address parameter represents the MAC address in the standard xx.xx.xx.xx.xx.xx format.

Default

No default value.

Mode

Privileged EXEC

Usage

Use this command to show the entries in the MAC address table. As an option, you can specify a single MAC address for which entries in the MAC address table must be displayed.

Example: This example shows how to display the entire MAC address table:

CODE
Switch# show mac address-table
 VID  |    MAC Address    |       Type        |   Ports
------+-------------------+-------------------+---------------
    1 | DE:AD:BE:EF:01:02 |    Management     |   CPU
    1 | 1C:E6:C7:8F:10:02 |      Dynamic      |   1/0/3

Total number of entries: 2

Example: This example shows how to display address table entries that contain MAC address 00:11:22:33:44:55:

CODE
Switch# show mac address-table 00:11:22:33:44:55
 VID  |    MAC Address    |    Type    |   Ports
------+-------------------+------------+----------------
  100 | 00:11:22:33:44:55 |   Static   |   1/0/1

Total number of entries: 1