3Com Switch 4200G Configuration Guide
90 CHAPTER 17: PORT SECURITY CONFIGURATION
Security MAC can be learned by the autolearn function of Port-Security feature, and
can be configured by the command or MIB manually.
Before adding Security MAC, you may configure the port security mode to autolearn
and then the MAC address learning method will change:
■ Original dynamic MAC address will be deleted;
■ If the maximum Security MAC number is not reached maximum, the new MAC
address learned by the port will be added as Security MAC;
■ If the maximum Security MAC number is reached maximum, the new MAC
address cannot be learned by the port and the port mode will be changed from
autolearn to secure
1 port-security port-mode autolearn command cannot be configured with the
following features at the same time:
■ Static and black-hole MAC address;
■ Voice VLAN feature;
■ 802.1x feature;
■ port link aggregation;
■ configuration of mirroring reflect port;
2 port-security max-mac-count count-value command cannot be configured with
mac-address max-mac-count count.
Displaying Port
Security
To display port-security related information after the above configuration, enter the
following command in any view.
Table 67 Configure Security MAC address
Operation Command Description
Enter system view system-view -
Enable the port security port-security enable Required
Enter Ethernet port view interface interface-type
interface-number
-
Set the maximum number of
Security MAC allowed by the
port
port-security max-mac-count
count-value
Required
By default, the maximum
number of Security MAC
is not limited
Set the port mode to
autolearn
port-security port-mode autolearn Required
Add Security MAC address
manually
mac-address security mac-address
[ interface interface-type
interface-number ] vlan vlan-id
Required
This command can be
configured either in
system view or Ethernet
port view
Table 68 Display port security
Operation Command
Display port-security related
information
display port-security [ interface interface-list ]
Display the configuration of Security
MAC address
display mac-address security [ interface
interface-type interface-number ] [ vlan vlan-id ] [
count ]