1-7
By setting the maximum number of MAC addresses that can be learned from individual ports, the
administrator can control the number of the MAC address entries the MAC address table can
dynamically maintain. When the number of the MAC address entries learnt from a port reaches the set
value, the port stops learning MAC addresses.
Follow these steps to set the maximum number of MAC addresses a port can learn:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port view
interface interface-type
interface-number
—
Set the maximum number of
MAC addresses the port can
learn
mac-address max-mac-count
count
Required
By default, the number of the
MAC addresses a port can
learn is not limited.
If you have configured the maximum number of MAC addresses that a port can learn, you cannot
enable the MAC address authentication or port security functions on the port, and vice versa.
Enabling Destination MAC Address Triggered Update
By default, a switch updates its MAC address entries based on the source MAC addresses of packets.
However, this may cause the switch to perform unnecessary broadcasts in some applications. For
example, when a port aggregation group is used in a stacked configuration (IRF) for communications,
MAC address entries of some ports in the aggregation group may not be updated in time, resulting in
unnecessary broadcasts.
The destination MAC address triggered update function solves the above problem by allowing the
switch to update its MAC address entries according to destination MAC addresses in addition to source
MAC addresses. This function improves the availability of the MAC address table.
Follow these steps to enable destination MAC address triggered update:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable destination MAC
address triggered update
mac-address aging
destination-hit enable
Required
Disabled by default
Displaying MAC Address Table Information
To do…
Use the command…
Remarks
Display information about the MAC
address table
display mac-address
[
display-option
]
Available in any
view