H3C LS-3100-52P-OVS-H3 Operation Manual - page 1695
1-5
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet
interface view
interface interface-type
interface-number
Enter
Ethernet
interface
view, port
group view
Enter port group
view
port-group manual
port-group-name
Required
Use any of these three
commands.
The configuration you make in
Ethernet interface view takes
effect on the current interface
only; the configuration you
make in port group view takes
effect on all the member ports
in the port group.
Configure the maximum number
of MAC addresses that can be
learned on an Ethernet port view
or port group
mac-address
max-mac-count count
Required
The default maximum number
of MAC addresses that can be
learned is not configured.
Displaying and Maintaining MAC Address Table Management
To do…
Use the command…
Remarks
display mac-address blackhole [ vlan
vlan-id ] [ count ]
Display MAC address table
information
display mac-address [ mac-address [ vlan
vlan-id ] | [ dynamic | static ] [ interface
interface-type interface-number ] [ vlan
vlan-id ] [ count ] ]
Display the aging timer for
dynamic MAC address entries
display mac-address aging-time
Display MAC address statistics
display mac-address statistics
Available in any
view
MAC Address Table Management Configuration Example
Network requirements
Log onto your device from the Console port to configure MAC address table management as follows:
z
Set the aging timer to 500 seconds for dynamic MAC address entries.
z
Add a static entry 000f-e235-dc71 for port GigabitEthernet 1/0/1 in VLAN 1.
Configuration procedure
# Add a static MAC address entry.
[Sysname] mac-address static 000f-e235-dc71 interface gigabitethernet 1/0/1 vlan 1
# Set the aging timer for dynamic MAC address entries to 500 seconds.
[Sysname] mac-address timer aging 500
# Display the MAC address entry for port GigabitEthernet 1/0/1.
[Sysname] display mac-address interface gigabitethernet 1/0/1