21To do… Use the command… RemarksEnter system view system-view —Configure the aging timer fordynamic MAC address entriesmac-address timer { aging seconds| no-aging }Optional300 seconds by default.You can reduce broadcasts on a stable network by disabling the aging timer to prevent dynamic entriesfrom unnecessarily aging out. By reducing broadcasts, you improve not only network performance, butalso security, because the chances for a data packet to reach unintended destinations are reduced.Configuring the MAC learning limit on portsTo prevent the MAC address table from getting too large, you can limit the number of MAC addressesthat can be learned on a port.Follow these steps to configure the MAC learning limit on a Layer 2 Ethernet interface or all ports in a portgroup:To do… Use the command… RemarksEnter system view system-view —Enter Layer 2Ethernetinterface viewor port groupviewEnter Layer 2 Ethernetinterface viewinterface interface-typeinterface-numberUse either command.The configuration made in Layer 2Ethernet interface view takes effecton the current interface only. Theconfiguration made in port groupview takes effect on all the memberports in the port group.Enter port group view port-group manualport-group-nameConfigure the MAC learning limit on theinterface or port groupmac-addressmax-mac-count countRequiredNo MAC learning limit isconfigured by default.NOTE:• 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 view