
1-7
Setting the Port Security Mode
Configuration Prerequisites
Before setting the port security mode, ensure that:
z
802.1X is disabled, the port access control method is
macbased
, and the port access control mode
is
auto
.
z
MAC authentication is disabled.
z
The port does not belong to any aggregation group.
The above requirements must be all met. Otherwise, you will see an error message and your
configuration will fail. On the other hand, after setting the port security mode on a port, you cannot
change any configurations of the first three requirements.
z
With port security disabled, you can configure the port security mode, but your configuration does
not take effect.
z
You cannot change the port security mode of a port when any user is present on the port.
z
Before configuring the port to operate in autoLearn mode, set the maximum number of secure MAC
addresses allowed on a port.
Configuring Procedure
Follow these steps to enable any other port security mode:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Set an OUI value for user
authentication
port-security
oui
oui-value index
index-value
Optional
Not configured by default.
The command is required for the
userlogin-withoui
mode.
Enter interface view
interface
interface-type interface-number
—
Set the port security mode
port-security
port-mode
{
autolearn
|
mac-authentication |
mac-else-userlogin-secure |
mac-else-userlogin-secure-ext | secure |
userlogin | userlogin-secure |
userlogin-secure-ext |
userlogin-secure-or-mac |
userlogin-secure-or-mac-ext |
userlogin-withoui
}
Required
By default, a port operates in
noRestrictions mode.
Содержание S5120-EI Series
Страница 139: ...ii...
Страница 268: ...3 3 SwitchB system view SwitchB interface vlan interface 1 SwitchB Vlan interface1 ip address dhcp alloc...
Страница 328: ...i Table of Contents 1 Dual Stack Configuration 1 1 Dual Stack Overview 1 1 Configuring Dual Stack 1 1...
Страница 578: ...1 21 C...
Страница 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Страница 926: ...2 8...
Страница 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Страница 985: ...1 1...
Страница 1018: ...1 6...