Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 Port Security Commands
Huawei Technologies Proprietary
1-5
Note:
You can add Security MAC address only when the port-security is enabled globally and
the
port-security port-mode autolearn
command is configured on the port.
Example
# Enter system view.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
# Enable port-security feature globally.
[Quidway] port-security enable
# Enter the Ethernet1/0/1 port view.
[Quidway] interface Ethernet1/0/1
# Configure the maximum number of MAC addresses allowed to access the port to 100.
[Quidway-Ethernet1/0/1] port-security max-mac-count 100
# Configure the port mode to
autolearn
.
[Quidway-Ethernet1/0/1] port-security port-mode autolearn
# Add the Security MAC address 0001-0001-0001 to VLAN 1.
[Quidway-Ethernet1/0/1] mac-address security 0001-0001-0001 vlan 1
1.1.4 port-security enable
Syntax
port-security enable
undo port-security enable
View
System view
Parameter
None
Description
Use the
port-security enable
command to enable port security.
Use the
undo port-security enable
command to disable port security.
By default, port security is disabled.