Displaying MAC Address Table 241
Tab le 260 Set the MAC Address Aging Time for the System
In addition, this command takes effect on all the ports. However the address aging
only functions on the dynamic addresses (manual entries added to the Switch are
not aged).
By default, the aging-time is 300 seconds. With the no-aging parameter, the
command performs no aging on the MAC address entries.
Setting the Max Count
of MAC Addresses
Learned by a Port
With the address learning function, a Switch can learn new MAC addresses. After
it receives a packet destined for an already learned MAC address, the Switch will
forward it directly with the hardware, instead of broadcasting it. However, too
many MAC address items learned by a port will affect the Switch operation
performance.
You can control the MAC address items learned by a port through setting the max
count of MAC addresses learned by a port. If a user sets the max count value of a
port as
count, the port will not learn new MAC address items when the count of
MAC address items reaches the
count value.
You can use the following commands to set the max count of MAC addresses
learned by a port.
Perform the following configuration in Ethernet Port View.
Tab le 261 Set the Max Count of MAC Address Learned by a Port
By default, there is no limit to the MAC addresses learned via the Ethernet port.
Displaying MAC
Address Table
After the above configuration, execute the display command in all views to
display the running of the MAC address table configuration, and to verify the
effect of the configuration.
Execute the debugging command in User View to debug MAC address table
configuration.
Tab le 262 Display and Debug MAC Address Table
Operation Command
Set the dynamic MAC address aging time mac-address timer { aging age |
no-aging }
Restore the default MAC address aging time undo mac-address timer aging
Operation Command
Set the Max Count of MAC Address
Learned by a Port
mac-address max-mac-count count
Restore the default Max Count of MAC
Address Learned by a Port
undo mac-address max-mac-count
Operation Command
Display the information in the
address table
display mac-address [ mac-addr [ vlan
vlan-id ] | [ static | dynamic | blackhole
] [ interface { interface-name |
interface-type interface-num } ] [ vlan
vlan-id ] [ count ] ]