Configuration procedure
To enable a port security mode:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Set an OUI value for user authentication. | port-security oui oui-value index index-value | Required for the userlogin-withoui mode. Not configured by default. To set multiple OUI values, repeat this step. |
3. Enter Layer 2 Ethernet interface view. | interface interface-type interface-number |
|
4. 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 } | By default, a port operates in noRestrictions mode. |