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 an XRN fabric 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
]
Display the aging time of the dynamic
MAC address entries in the MAC address
table
display mac-address aging-time
Display the configured start port MAC
address
display port-mac
Available in any
view
18-7