MAC Address Table Management 455
Configuration procedure
The display command shows a stack wide view of the MAC address table.
[SW5500]display mac-address
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
00e0-fc00-3943 1 Learned Ethernet1/0/11 300
0000-0000-5100 1 Learned Ethernet2/0/22 300
0020-9c08-e774 1 Learned Ethernet2/0/7 288
0000-0000-5000 1 Learned Ethernet2/0/3 143
--- 4 mac address(es) found ---
MAC Address Table
Management
Configuration Example
Networking Requirements
The user logs into the Switch using the Console port to configure the address table
management. It is required to set the address aging time to 500s and add a static
address 00e0-fc35-dc71 to Ethernet1/0/2 in vlan1.
Networking Diagram
Figure119 Typical Configuration of Address Table Management
Configuration Procedure
1Enter the System View of the Switch.
<SW5500> system-view
2Add a MAC address (specify the native VLAN, port and state).
[SW5500]mac-address static 00e0-fc35-dc71 interface ethernet1/0/2 vlan
1
3Set the address aging time to 500s.
[SW5500]mac-address timer aging 500
4Display the MAC address configurations in all views.
[SW5500]display mac-address interface ethernet1/0/2
MAC ADDR VLAN IDSTATEPORT INDEXAGING TIME(s)
00-e0-fc-35-dc-711StaticEthernet1/0/2NOAGED
00-e0-fc-17-a7-d61LearnedEthernet1/0/2500
00-e0-fc-5e-b1-fb1LearnedEthernet1/0/2500
00-e0-fc-55-f1-161LearnedEthernet1/0/2500
--- 4 mac address(es) found ---
Console Port
Network Port
Switch
Internet