1-7Operation Command DescriptionSet the maximum number ofMAC addresses the port canlearnmac-address max-mac-countcountRequiredBy default, the number of theMAC addresses a port canlearn is not limited.Displaying MAC Address Table InformationTo verify your configuration, you can display information about the MAC address table by executing thedisplay command in any view.Table 1-7 Display MAC address table informationOperation Command DescriptionDisplay information about theMAC address tabledisplay mac-address[ display-option ]Display the aging time of thedynamic MAC address entriesin the MAC address tabledisplay mac-addressaging-timeThe display command can beexecuted in any view.Configuration ExampleAdding a Static MAC Address Entry ManuallyNetwork requirementsThe server connects to the switch through GigabitEthernet 1/0/2. To prevent the switch frombroadcasting packets destined for the server, it is required to add the MAC address of the server to theMAC address table of the switch, which then forwards packets destined for the server throughGigabitEthernet 1/0/2.z The MAC address of the server is 000f-e20f-dc71.z Port GigabitEthernet 1/0/2 belongs to VLAN 1.Configuration procedure# Enter system view. system-view[Sysname]# Add a MAC address, with the VLAN, ports, and states specified.[Sysname] mac-address static 000f-e20f-dc71 interface GigabitEthernet 1/0/2 vlan 1# Display information about the current MAC address table.[Sysname] display mac-address interface GigabitEthernet 1/0/2MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)000f-e20f-dc71 1 Config static GigabitEthernet1/0/2 NOAGED000f-e20f-a7d6 1 Learned GigabitEthernet1/0/2 AGING000f-e20f-b1fb 1 Learned GigabitEthernet1/0/2 AGING000f-e20f-f116 1 Learned GigabitEthernet1/0/2 AGING