Disabling Mac Address Learning On A Vlan - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 4
Administering the Switch

Disabling MAC Address Learning on a VLAN

By default, MAC address learning is enabled on all VLANs on the switch. By controlling which VLANs
can learn MAC addresses, you can manage the available MAC address table space. By disabling learning
on a VLAN, you can conserve the MAC address table space because all the MAC addresses seen on this
VLAN are not learned.
Before disabling MAC address learning, you should understand the network topology and features
deployed. Many Layer 2 features use MAC addresses and may not work properly if learning is disabled.
Because disabling learning causes flooding of packets, you need to understand the impact of flooding on
the network.
These sections contain this information:
Configuring Disable MAC Address Learning
To disable MAC address learning on a VLAN, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# no mac
address-table learning vlan vlan-id
range
Step 3
Switch(config)# end
Step 4
Switch# show mac address-table
learning [vlan vlan-id range]
Step 5
Switch# copy running-config
startup-config
This example shows how to disable learning on any VLAN or range of VLANs:
Switch# configure terminal
Switch(config)# no mac
Switch(config)# end
Switch#
Switch# show mac address-table learning
Learning disabled on vlans: 9-11,13-16
Switch# show mac address-table learning vlan 10-15
Learning disabled on vlans: 10-11,13-15
OL-30933-01
Deployment Scenarios, page 4-40
Configuring Disable MAC Address Learning, page 4-39
Usage Guidelines, page 4-40
Deployment Scenarios, page 4-40
Feature Compatibility, page 4-42
Feature Incompatibility, page 4-43
Purpose
Enters global configuration mode.
Disables MAC address learning on the specified VLAN or VLANs. You
can specify a single VLAN ID or a range of VLAN IDs separated by a
hyphen or comma. Valid VLAN IDs are 1 to 4094.
You can reenable MAC address learning on a VLAN by entering the
mac address-table learning vlan global configuration command.
Returns to privileged EXEC mode.
Displays the MAC address learning status of all VLANs or a specified
VLAN.
(Optional) Saves your entries in the configuration file.
a
ddress-table learning vlan 9-16
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Managing the MAC Address Table
4-39

Advertisement

Table of Contents
loading

Table of Contents