174 CHAPTER 20: MAC A DDRESS TABLE MANAGEMENT CONFIGURATIONAs shown in Figure 46, when forwarding a frame, the switch looks up the MACaddress table. If an entry is available for the destination MAC address, the switchforwards the frame directly from the hardware. If not, it does the following:1 Broadcast the frame.2 After the frame reaches the destination, the destination sends back a responsewith its MAC address. (If no response is received, the frame will be dropped.)3 Upon receipt of the response, the device adds an entry in the MAC address table,indicating from which port the frames destined for the MAC address should besent.4 Forward subsequent frames destined for the same MAC address directly from thehardware.5 Discard the frames which cannot reach the destination MAC address.Figure 46 Forward frames using the MAC address tableConfiguring MACAddress TableManagementThis section covers these topics:■ “Configuring MAC Address Entries” on page 174■ “Configuring MAC Address Aging Timer” on page 175■ “Configuring the Maximum Number of MAC Addresses an Ethernet Port or aPort Group Can Learn” on page 175Configuring MACAddress EntriesFollow these steps to add, modify, or remove entries in the MAC address table:Port 1 Port 2MAC address PortMAC A 1MAC B 1MAC C 2MAC D 2MAC AMAC BMAC CMAC DTo do… Use the command… RemarksEnter system view system-view -Add/modify a MAC address entry mac-address blackhole mac-address vlanvlan-idRequiredmac-address { dynamic | static }mac-address interface interface-typeinterface-number vlan vlan-idEnter Ethernet port view interface interface-type interface-number -Add/modify MAC address entriesin the specified port viewmac-address { dynamic | static }mac-address vlan vlan-idRequired