10-MAC Address Table Attribute Configuration
10-MAC Address Table Attribute Configuration
Table of Contents
Table of Contents
Chapter 1 Configuring MAC Address Attribute.................................................................................1
1.1 MAC Address Configuration Task List.................................................................................1
1.2 MAC Address Configuration Task........................................................................................1
1.2.1 Configuring Static Mac Address................................................................................1
1.2.2 Configuring MAC Address Aging Time......................................................................1
1.2.3 Configring VLAN-shared MAC Address....................................................................2
1.2.4 Displaying MAC Address..........................................................................................2
1.2.5 Clearing dynamic MAC Address...............................................................................2
-I-
MAC Address Table Attribute Configuration
Static MAC address entries are MAC address entries that do not age by the
switch and can only be deleted manually. According to the actual requirements
during the operation process, you can add and delete a static MAC address. Use
the following command in privileged level to add and delete a static MAC address.
Command Purpose
[no] mac address-table static mac-addr Adds/deletes a static MAC address entry.
vlan vlan-id interface interface-id
Mac-addr indicates the MAC address.
When a dynamic MAC address is not used during the specified aging time, the
switch will delete this MAC address from the MAC address table. The aging time
of the switch MAC address can be configured in terms of needs. The default aging
time is 300 seconds.
Configure the aging time of MAC address in the privileged mode as follows:
command purpose
-1-
MAC Address Table Attribute Configuration
mac address-table aging-time [0 | 10- Configures the aging time of MAC address.
1000000]
0 indicates no-age of the MAC address.
When a port is configured with the VLAN-shared MAC address, the MAC address
learned by the port will be shared by all VLAN, that is, other VLANs will learn the
MAC address too.
Perform the following steps in privileged mode to configure the MAC address
shared by VLANs.
Command Purpose
Command purpose
show mac address-table {dynamic Displays content of the MAC address table.
[interface interface-id | vlan vlan-id] | static}
Dynamic indicates the MAC address that
acquires dynamically.
Use the following command to delete a dynamic MAC address in privileged mode:
-2-
MAC Address Table Attribute Configuration
command purpose
clear mac address-table dynamic [address Deletes a dynamic MAC address entry.
mac-addr | interface interface-id | vlan vlan-
Dynamic indicates the MAC address that
id]
dynamically acquires.
-3-