3Com Switch 4200G Configuration Guide
96 CHAPTER 18: MAC ADDRESS TABLE MANAGEMENT
Disabling MAC Address
learning for a VLAN
You can disable a switch from learning MAC addresses in specific VLANs to improve
stability and security for the users belong to these VLANs and prevent unauthorized
accesses.
Displaying and
Maintaining a MAC
Address Table
To verify your configuration, you can display information about the MAC address
table by executing the display command in any view.
Configuration
Example
Network requirements
■ Log into the switch through the Console port.
■ Set the aging time of the dynamic MAC address entries to 500 seconds.
■ Add a static MAC address entry for GigabitEthernet1/0/2 port (assuming that the
port belongs to VLAN 1), with the MAC address of 00e0-fc35-dc71.
Network diagram
Figure 29 Network diagram for MAC address table configuration
Table 72 Disable MAC address learning for a VLAN
Operation Command Description
Enter system view system-view
Enter VLAN view vlan vlan-id
Disable the switch from
learning MAC
addresses in the VLAN
mac-address max-mac-count 0 Required
By default, a switch learns MAC
addresses in any VLAN.
Table 73 Display and maintain the MAC address table
Operation Command
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
Console port
Network port
Switch
Internet
t
Switch
Internet
Console port
Network port
Switch
Internet
t
Switch
Internet