452
C
22: F
S
HAPTER
ILE
YSTEM
MAC Address Table
Configuration
M
ANAGEMENT
Figure 117 The Switch Forwards Packets with MAC Address Table
MACD MACA
Port 1
The Switch also provides the function of MAC address aging. If the Switch receives no
packet for a period of time, it will delete the related entry from the MAC address
table. However, this function takes no effect on the static MAC addresses.
You can configure (add or modify) the MAC address entries manually according to the
actual networking environment. The entries can be static ones or dynamic ones.
MAC address table management includes:
Setting MAC Address Table Entries
■
Setting MAC Address Aging Time
■
Setting the Max Count of MAC Addresses Learned by a Port
■
Setting MAC Address Table Entries
Administrators can manually add, modify, or delete the entries in MAC address table
according to the actual needs. They can also delete all the (unicast) MAC address
table entries related to a specified port or delete a specified type of entry, such as
dynamic entries or static entries.
You can use the following commands to add, modify, or delete the entries in the
MAC address table.
Perform the following configuration in System View.
Table 497 Set MAC Address Table Entries
Operation
Add/Modify an address entry mac-address { static | dynamic | blackhole }
Delete an address entry
When deleting the dynamic address table entries, the learned entries will be deleted
simultaneously.
MAC Address
MACA
MACB
MACC
......
MACD
MACD MACA
Port 2
Command
mac-address interface { interface-name |
interface-type interface-num } vlan vlan-id
undo mac-address [ { static | dynamic |
blackhole } mac-address interface {
interface-name | interface-type interface-num }
vlan vlan-id ]
Port
1
1
2
2
......