•
Specify an aging time.
CONFIGURATION mode
mac-address-table aging-time seconds
The range is from 10 to 1000000.
Configuring a Static MAC Address
A static entry is one that is not subject to aging. Enter static entries manually.
To create a static MAC address entry, use the following command.
•
Create a static MAC address entry in the MAC address table.
CONFIGURATION mode
mac-address-table static
Displaying the MAC Address Table
To display the MAC address table, use the following command.
•
Display the contents of the MAC address table.
EXEC Privilege mode
show mac-address-table [address | aging-time [vlan vlan-id]| count | dynamic |
interface | static | vlan]
•
address: displays the specified entry.
•
aging-time: displays the configured aging-time.
•
count: displays the number of dynamic and static entries for all VLANs, and the total number of
entries.
•
dynamic: displays only dynamic entries.
•
interface: displays only entries for the specified interface.
•
static: displays only static entries.
•
vlan: displays only entries for the specified VLAN.
MAC Learning Limit
MAC address learning limit is a method of port security on Layer 2 port-channel and physical interfaces, and
VLANs. It allows you to set an upper limit on the number of MAC addresses that learned on an interface/
VLAN. After the limit is reached, the system drops all traffic from a device with an unlearned MAC address.
This section describes the following:
•
Setting the MAC Learning Limit
•
mac learning-limit Dynamic
Layer 2
639