This configuration is different from that of the maximum number of MAC addresses that can be leaned
by a port in MAC address management.
Follow these steps to set the maximum number of MAC addresses allowed on a port:
To do...
Enter system view
Enter Ethernet port view
Set the maximum number of
MAC addresses allowed on the
port
Setting the Port Security Mode
Follow these steps to set the port security mode:
To do...
Enter system view
Set the OUI value for user
authentication
Enter Ethernet port view
Set the port security mode
Use the command...
system-view
interface interface-type
interface-number
port-security max-mac-count
count-value
Use the command...
system-view
port-security oui OUI-value
index index-value
interface interface-type
interface-number
port-security port-mode
{ autolearn |
mac-and-userlogin-secure |
mac-and-userlogin-secure-e
xt | mac-authentication |
mac-else-userlogin-secure |
mac-else-userlogin-secure-e
xt | secure | userlogin |
userlogin-secure |
userlogin-secure-ext |
userlogin-secure-or-mac |
userlogin-secure-or-mac-ext
| userlogin-withoui }
1-6
Remarks
—
—
Required
Not limited by default
Remarks
—
Optional
In userLoginWithOUI mode, a
port supports one 802.1x user
plus one user whose source
MAC address has a specified
OUI value.
—
Required
By default, a port operates in
noRestriction mode. In this
mode, access to the port is not
restricted.
You can set a port security
mode as needed.