Configuring the mac learning limit on a port, Displaying and maintaining mac address tables – H3C Technologies H3C WX5500E Series Access Controllers User Manual

Page 36

Advertising
background image

25

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Configure the aging timer for

dynamic MAC address
entries.

mac-address timer { aging seconds
| no-aging }

Optional.
By default, the aging timer is 300
seconds.
The no-aging keyword disables the

aging timer.

Configuring the MAC learning limit on a port

To prevent a large MAC address table from degrading forwarding performance, limit the number of

MAC addresses that a port can obtain. Do not configure the MAC learning limit on any member ports

of an aggregation group. Otherwise, the member ports cannot be selected.
To configure the MAC learning limit on a Layer 2 Ethernet interface or all ports in a port group:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

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

Use either command.
Settings in interface view take
effect on the interface only.

Settings in port group view take

effect on all member ports in the
port group.

3.

Configure the MAC learning
limit on the interface or port

group.

mac-address max-mac-count
count

By default, no limit is configured.
Layer 2 aggregate interfaces do
not support the mac-address

max-mac-count command.

Displaying and maintaining MAC address tables

Task 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.

Display the system or interface

MAC address learning state.

display mac-address mac-learning [ interface-type
interface
-number ] [ | { begin | exclude | include }

regular-expression ]

Available in any

view.

Advertising