The following are the examples of the outputs using the show commands.
Router# show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
20 2222.2222.2222 STATIC Gi0/2
10 0000.0700.0a00 DYNAMIC Gi0/9
10 0000.0700.0b00 DYNAMIC Gi0/1
Total Mac Addresses for this criterion: 3
In the above example, the show mac-address-table command displays both the dynamically and statically learned addresses.
Following is an example for show mac-address-table dynamic command which displays only dynamically learned addresses.
Router# show mac-address-table dynamic
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0000.0700.0a00 DYNAMIC Gi0/9
10 0000.0700.0b00 DYNAMIC Gi0/1
Total Mac Addresses for this criterion: 2
Following is an example for show mac-address-table vlan 10 command which displays only the addresses learned on a particular
VLAN/BD.
Router# show mac-address-table vlan 10
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0000.0700.0a00 DYNAMIC Gi0/9
10 0000.0700.0b00 DYNAMIC Gi0/1
Total Mac Addresses for this criterion: 2
Following is an example for show mac-address-table interface g0/9 command which displays only the addresses learned on a particular
VLAN/BD interface.
Router# show mac-address-table interface 0/9
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0000.0700.0a00 DYNAMIC Gi0/9
Total Mac Addresses for this criterion: 1
Following is an example for show mac-address-table interface port-channel command which displays only the addresses learned
on a particular port-channel interface.
Router# show mac-address-table interface port-channel 1
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0000.0700.0b00 DYNAMIC Po1
Total Mac Addresses for this criterion: 1