Chapter 2 Catalyst 2960 Switch Cisco IOS Commands
show mac address-table interface
Use the show mac address-table interface user command to display the MAC address table information
for the specified interface in the specified VLAN.
Syntax Description
interface-id
vlan vlan-id
| begin
| exclude
| include
expression
Command Modes
User EXEC
Command History
Release
12.2(25)FX
Usage Guidelines
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.
Examples
This is an example of output from the show mac address-table interface command:
Switch> show mac address-table interface gigabitethernet0/2
------------------------------------------
Vlan
----
1
1
Total Mac Addresses for this criterion: 2
78-16882-01
show mac address-table interface interface-id [vlan vlan-id] [ | {begin | exclude | include}
expression]
Specify an interface type; valid interfaces include physical ports and port
channels.
(Optional) Display entries for a specific VLAN; the range is 1 to 4094.
(Optional) Display begins with the line that matches the expression.
(Optional) Display excludes lines that match the expression.
(Optional) Display includes lines that match the specified expression.
Expression in the output to use as a reference point.
Modification
This command was introduced.
Mac Address Table
Mac Address
Type
-----------
----
0030.b635.7862
DYNAMIC Gi0/2
00b0.6496.2741
DYNAMIC Gi0/2
Ports
-----
Catalyst 2960 Switch Command Reference
show mac address-table interface
2-339