Before configuring the port to operate in autoLearn mode, set the maximum number of secure MAC
addresses allowed on a port.
With port security disabled, you can configure the port security mode, but your configuration does
not take effect.
You cannot change the port security mode of a port when any user is present on the port.
Configuring Procedure
Follow these steps to enable any other port security mode:
To do...
Enter system view
Set an OUI value for
user authentication
Enter interface view
Set the port security
mode
Use the command...
system-view
port-security oui oui-value
index index-value
interface interface-type
interface-number
port-security port-mode
{ autolearn |
mac-authentication |
mac-else-userlogin-secure |
mac-else-userlogin-secure-ex
t | secure | userlogin |
userlogin-secure |
userlogin-secure-ext |
userlogin-secure-or-mac |
userlogin-secure-or-mac-ext |
userlogin-withoui }
1-7
Remarks
—
Optional
Not configured by default.
The command is required for the
userlogin-withoui mode.
—
Required
By default, a port operates in
noRestrictions mode.