24Configuring a static or dynamic MAC address table entry insystem viewStep Command Remarks1. Enter system view. system-view N/A2. Add or modify adynamic or static MACaddress entry.mac-address { dynamic | static }mac-address interface interface-typeinterface-number vlan vlan-idBy default, no MAC addressentry is configured.Make sure that you have createdthe VLAN and assigned theinterface to the VLAN.Configuring a static or dynamic MAC address table entry ininterface viewStep Command Remarks1. Enter system view. system-view N/A2. Enter Layer 2 Ethernetinterface view or Layer 2aggregate interfaceview.interface interface-typeinterface-number N/A3. Add or modify a static ordynamic MAC addressentry.mac-address { dynamic | static }mac-address vlan vlan-idBy default, no MAC address entry isconfigured.Make sure that you have created theVLAN and assigned the interface to theVLAN.Configuring a blackhole MAC address entryStep Command Remarks1. Enter system view. system-view N/A2. Add or modify ablackhole MACaddress entry.mac-address blackhole mac-address vlan vlan-idBy default, no MACaddress entry isconfigured.Make sure that you havecreated the VLAN.Disabling MAC address learning on a VLANSometimes, you might need to disable MAC address learning to prevent the MAC address table frombeing saturated, for example, when your device is being attacked by a large amount of packets withdifferent source MAC addresses.When MAC address learning is disabled, the learned MAC addresses remain valid until they age out.