4 configuration example, I. network requirements – H3C Technologies H3C S3100 Series Switches User Manual
Page 172

Operation Manual – MAC Address Table
H3C S3100-52P Ethernet Switch
Chapter 1
MAC Address Table
Management
1-6
can dynamically maintain. When the number of the MAC address entries learnt from a
port reaches the set value, the port stops learning MAC addresses.
Table 1-5
Set the maximum number of MAC addresses a port can learn
Operation
Command
Description
Enter system view system-view
—
Enter Ethernet port
view
interface
interface-type
interface-number
—
Set the maximum
number of MAC
addresses the port
can learn
mac-address
max-mac-count count
Required
By default, the number of the
MAC addresses a port can
learn is not limited.
1.3 Displaying and Maintaining MAC Address Table
Configuration
To verify your configuration, you can display information about the MAC address table
by executing the display command in any view.
Table 1-6
Display and maintain MAC address table configuration
Operation
Command
Description
Display information about
the MAC address table
display mac-address
[ display-option ]
Display the aging time of
the dynamic MAC address
entries in the MAC
address table
display mac-address
aging-time
The
display
command can be
executed in any view.
1.4 Configuration Example
I. Network requirements
z
Log in to the switch through the Console port and enable address table
configuration.
z
Set the aging time of dynamic MAC address entries to 500 seconds.
z
Add a static MAC address entry 00e0-fc35-dc71 for Ethernet1/0/2 port (assuming
that the port belongs to VLAN 1)