27NOTE:• Layer 2 aggregate interfaces do not support the mac-address max-mac-count command.• Do not configure the MAC learning limit on any member ports of an aggregation group. Otherwise, themember ports cannot be selected.Displaying and maintaining MAC address tablesTo do… Use the command… RemarksDisplay MAC address tableinformationdisplay mac-address [ mac-address [ vlan vlan-id ] |[ [ dynamic | static ] [ interface interface-typeinterface-number ] | blackhole ] [ vlan vlan-id ][ count ] ] [ | { begin | exclude | include }regular-expression ]Available in any viewDisplay the aging timer fordynamic MAC address entriesdisplay mac-address aging-time [ | { begin |exclude | include } regular-expression ] Available in any viewDisplay the system or interfaceMAC address learning statedisplay mac-address mac-learning [ interface-typeinterface-number ] [ | { begin | exclude | include }regular-expression ]Available in any viewDisplay MAC addressstatisticsdisplay mac-address statistics [ | { begin | exclude |include } regular-expression ] Available in any viewMAC address table configuration exampleNetwork requirements• The MAC address of one host is 000f-e235-dc71 and belongs to VLAN 1. It is connected toGigabitEthernet 1/0/1 of the device. To prevent MAC address spoofing, add a static entry into theMAC address table of the device for the host.• The MAC address of another host is 000f-e235-abcd and belongs to VLAN 1. Because this hostonce behaved suspiciously on the network, you can add a destination blackhole MAC addressentry for the MAC address to drop all packets destined for the host.• Set the aging timer for dynamic MAC address entries to 500 seconds.Configuration procedure# Add a static MAC address entry. system-view[Sysname] mac-address static 000f-e235-dc71 interface gigabitethernet 1/0/1 vlan 1# Add a destination blackhole MAC address entry.[Sysname] mac-address blackhole 000f-e235-abcd vlan 1# Set the aging timer for dynamic MAC address entries to 500 seconds.[Sysname] mac-address timer aging 500# Display the MAC address entry for port GigabitEthernet 1/0/1.[Sysname] display mac-address interface gigabitethernet 1/0/1MAC ADDR VLAN ID STATE PORT INDEX AGING TIME