Command:

show mac-address-table


Mode:

Switch>


Syntax:

show mac-address-table [aging-time | count | dynamic | static] [address hw-addr]
[interface interface-id] [vlan vlan-id] [ | {begin | exclude | include} expression]

Syntax Description:

aging-time

(Optional) Display aging time for dynamic addresses for all VLANs.

count

(Optional) Display the count for different kinds of MAC addresses (only available in privileged EXEC mode).

dynamic

(Optional) Display only the dynamic addresses.

static

(Optional) Display only the static addresses.

address hw-addr

(Optional) Display information for a specific address (only available in privileged EXEC mode).

interface interface-id

(Optional) Display addresses for a specific interface.

vlan vlan-id

(Optional) Display addresses for a specific VLAN. Valid IDs are from
1 to 4094 when the enhanced software image (EI) is installed and 1 to 1001 when the standard software image (SI) is installed.

| begin

(Optional) Display begins with the line that matches the specified expression.

| exclude

(Optional) Display excludes lines that match the specified expression.

| include

(Optional) Display includes lines that match the specified expression.

expression

Expression in the output to use as a reference point.

Command Description:

 

Use the show mac-address-table user EXEC command to display the MAC address table.

This command displays the MAC address table for the switch. Specific views can be defined by using the optional keywords and values. If more than one optional keyword is used, all of the conditions must be true in order for that entry to appear.

Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output do not appear, but the lines that contain Output appear.

 

Note:   Beginning with Release 12.1(11)EA1, the show mac address-table command replaces the show mac-address-table command (with the hyphen). The show mac-address-table command (with the hyphen) will become obsolete in a future release.


Example:

This is an example of output from the show mac-address-table command:

 

Switch>show mac-address-table

Dynamic Addresses Count: 9

Secure Addresses (User-defined) Count: 0

Static Addresses (User-defined) Count: 0

System Self Addresses Count: 41

Total MAC addresses: 50

Non-static Address Table:

Destination Address Address Type VLAN Destination Port

------------------- ------------ ---- --------------------

0010.0de0.e289 Dynamic 1 FastEthernet0/1

0010.7b00.1540 Dynamic 2 FastEthernet0/5

0010.7b00.1545 Dynamic 2 FastEthernet0/5

0060.5cf4.0076 Dynamic 1 FastEthernet0/1

0060.5cf4.0077 Dynamic 1 FastEthernet0/1

0060.5cf4.1315 Dynamic 1 FastEthernet0/1

0060.70cb.f301 Dynamic 1 FastEthernet0/1

00e0.1e42.9978 Dynamic 1 FastEthernet0/1

00e0.1e9f.3900 Dynamic 1 FastEthernet0/1

 

This is an example of output from the show mac-address-table static interface fastethernet0/2 vlan 1 command:

 

Switch>show mac-address-table static interface fastethernet0/2 vlan 1

vlan mac address type ports

-----+---------------+--------+---------

1 abcd.2345.0099 static Fa0/2

1 abcd.0070.0070 static Fa0/2

1 abcd.2345.0099 static Fa0/2

1 abcd.2345.0099 static Fa0/2

1 00d0.d333.7f34 static Fa0/2

1 abcd.2345.0099 static Fa0/2

1 0005.6667.0007 static Fa0/2

 

This is an example of output from the show mac-address-table count vlan 1 command:

 

Switch#show mac-address-table count vlan 1

MAC Entries for Vlan 1 :

Dynamic Address Count: 1

Static Address (User-defined) Count: 41

Total MAC Addresses In Use:42

Remaining MAC addresses: 8150

 

This is an example of output from the show mac-address-table aging-time command:

 

Switch>show mac-address-table aging-time

Vlan Aging Time

---- ----------

1 450

2 300

3 600

300 450

301 450

 

This is an example of output from the show mac-address-table aging-time vlan 1 command:

 

Switch>show mac-address-table aging-time vlan 1

Vlan Aging Time

---- ----------

1 450


Misconceptions:

           None.


Related Commands:

        clear mac-address-table dynamic


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)