2-832
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
show mac address-table learning
show mac address-table learning
To display the status of MAC address learning for all VLANs or a specified VLAN, use the
show mac address-table learning user EXEC command.
show mac address-table learning [vlan vlan-id] [ | {begin | exclude | include} expression]
Syntax Description
Defaults MAC address learning is enabled on all VLANs.
Command Modes User EXEC
Command History
Usage Guidelines To display configured VLANs, and whether MAC address learning is enabled or disabled, use the
show mac address-table learning command without keywords. .
To display the learning status on an individual VLAN, use the command with a specific VLAN ID.
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 example shows that MAC address learning is disabled on VLAN 200:
Switch> show mac address-table learning
VLAN Learning Status
---- ---------------
1 yes
100 yes
200 no
Related Commands
vlan vlan-id (Optional) Displays information for a specific VLAN. The range is 1 to
4094.
| begin (Optional) Displays the line that matches the expression.
| exclude (Optional) Displays excluded lines that match the expression.
| include (Optional) Displays included lines that match the specified expression.
expression (Optional) Specifies the expression in the output as a reference point.
Release Modification
12.2(54)SG This command was modified to support the learning disable feature on the
Catalyst 4500 series switch.
Command Description
mac address-table learning vlan Enables or disables MAC address learning on a VLAN.