MAC Address Table Configuration I Table of Contents Table of Contents Chapter 1 MAC Address Table Configuration.............................................................................................1 1.1 MAC Address Configuration Task List...........................................................................................1 1.2 MAC Address Configuration Tasks................................................................................................ 1 1.2.1 Configuring static MAC address.........................................................................................1 1.2.2 Configuring MAC address aging time................................................................................1 1.2.3 Configuring black hole MAC................................................................................................2 1.2.4 Displaying MAC address table............................................................................................2 1.2.5 Removing dynamic MAC address......................................................................................3 II MAC Address Table Configuration Chapter 1 MAC Address Table Configuration 1.1 MAC Address Configuration Task List This chapter is to describe the functions of configuring MAC address table on the switch as follow:  Configuring static MAC address  Configuring MAC address aging time  Configuring black hole MAC address  Displaying MAC address table  Removing dynamic MAC address 1.2 MAC Address Configuration Tasks 1.2.1 Configuring static MAC address A static MAC address table entry refers to the one that can not be aged by the switch. It only can be deleted manually. Static MAC address can be added or deleted according to the requirements when switches are in use. Enter privilege mode and use the following steps to add or delete a static MAC address. Command Purpose config Enters the global configuration mode. [no] mac address-table static mac-addr vlan Add/delete a static MAC address entry. vlan-id interface interface-id The mac-addr specifiesMACaddress; vlan-id means VLAN number, the effective range is1~4094; The interface-id is a port name. exit Goes back to the EXEC mode. write Saves the settings . 1.2.2 Configuring MAC address aging time When a dynamic MAC address is not used within a specified aging time, the switch will delete it from MAC address table. The MAC aging time of a switch can be set according to actual needs and the default aging time is 300 seconds. Enter EXEC mode, use steps as follow to configure the aging time of MAC address. Command Purpose 1 MAC Address Table Configuration config Enters the global configuration mode. mac address-table aging-time [0 | Sets the aging time of theMACaddress table. 10-1000000] 0 means the address does not age; The range of MAC address aging time is 10 to 1,000,000 seconds. exit Goes back to the EXEC mode. write Saves the settings . 1.2.3 Configuring black hole MAC The black hole MAC address entries mean those MAC address entries that cannot communicate but only be removed manually. Black hole MAC address can be added or deleted according to the requirements when switches are in use. Enter EXEC mode and use the following steps to add or delete a static MAC address. Command Purpose config Enters the global configuration mode. [no] mac address-table blackholemac-addr Add/delete a black hole MAC address entry. vlan vlan-id The mac-addr specifiesMACaddress; vlan-id means VLAN number, the effective range is1~4094; exit Goes back to the EXEC mode. write Saves the settings . 1.2.4 Displaying MAC address table When using switches, we expect to know the information about MAC address table in need of debugging or management. Use show to display MAC address table. Command Purpose show mac address-table [dynamic Dynamic, specify the MAC address [interface interface-id | vlan vlan-id] | dynamically learned. static | brief | multicast | interface interface-id | vlan vlan-id | H.H.H | The interface-id is the interface name. blackhole] vlan-id VLAN ID. Value range: 1-4094 Static Static MAC address table Brief Brief information about the MAC address Multicast Multicast MAC address table Interface Interface’s MAC address table Vlan Vlan mac address table H.H.H Specific address Blackhole MAC address; 2 MAC Address Table Configuration 1.2.5 Removing dynamic MAC address In some cases, it is necessary to clear up the MAC address which switch has learned. Enter the privileged mode and use the following commands to delete a dynamic MAC address. Command Purpose clear mac address-table dynamic [address Delete a dynamic MAC address entry. mac-addr | interface interface-id | vlan dynamic means the MAC address which is vlan-id] learned dynamically. mac-addr means a MAC address. The interface-id is the interface name. The vlan-id isVLANnumber, The value range is 1 to 4094; 3