Configuring the mac learning limit on ports, Displaying and maintaining mac address tables – H3C Technologies H3C S10500 Series Switches User Manual

Page 37

Advertising
background image

26

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the aging timer
for dynamic MAC address

entries

mac-address timer
{ aging seconds |

no-aging }

Optional
300 seconds by default.
The no-aging keyword disables the aging timer.

You can reduce broadcasts on a stable network by disabling the aging timer to prevent dynamic entries

from unnecessarily aging out. By reducing broadcasts, you improve not only network performance, but

also security, because you reduce the chances that a data packet will reach unintended destinations.

Configuring the MAC learning limit on ports

To prevent the MAC address table from getting too large, you can limit the number of MAC addresses

that can a port can obtain.
Follow these steps to configure the MAC learning limit on a Layer 2 Ethernet interface or all ports in a port

group:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter interface view or
port group view

Enter Layer 2 Ethernet interface

view:

interface interface-type

interface-number

Enter port group view:

port-group manual
port-group-name

Required
Use either command.
Settings in Layer 2 Ethernet interface view

take effect on the interface only. Settings in
port group view take effect on all member

ports in the port group.

Configure the MAC

learning limit on the
interface or port group

mac-address max-mac-count count

Required
No MAC learning limit is configured by

default.

NOTE:

Layer 2 aggregate interfaces do not support the mac-address max-mac-count command.

Do not configure the MAC learning limit on any member ports of an aggregation group. Otherwise, the
member ports cannot be selected.

Displaying and maintaining MAC address tables

To do…

Use the command…

Remarks

Display MAC address table
information

display mac-address [ mac-address [ vlan vlan-id ] |
[ [ dynamic | static ] [ interface interface-type

interface-number ] | blackhole ] [ vlan vlan-id ]
[ count ] ] [ | { begin | exclude | include }

regular-expression ]

Available in any view

Display the aging timer for
dynamic MAC address entries

display mac-address aging-time [ | { begin |
exclude | include } regular-expression ]

Available in any view

Advertising