8-12
port-security port-mode
Syntax
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
}
undo port-security port-mode
View
Interface view
Default Level
2: System level
Parameters
autolearn
: Operates in autoLearn mode.
mac-authentication
: Operates in macAddressWithRadius mode.
mac-else-userlogin-secure
: Operates in macAddressElseUserLoginSecure mode.
mac-else-userlogin-secure-ext
: Operates in macAddressElseUserLoginSecureExt mode.
secure
: Operates in secure mode.
userlogin
: Operates in userLogin mode.
userlogin-secure
: Operates in userLoginSecure mode.
userlogin-secure-ext
: Operates in userLoginSecureExt mode.
userlogin-secure-or-mac
: Operates in macAddressOrUserLoginSecure mode.
userlogin-secure-or-mac-ext
: Operates in macAddressOrUserLoginSecureExt mode.
userlogin-withoui
: Operates in userLoginWithOUI mode.
Description
Use the
port-security port-mode
command to set the port security mode of a port.
Use the
undo port-security port-mode
command to restore the default.
By default, a port operates in noRestrictions mode, where port security does not take effect.
Note that:
z
Configuration of port security mode on a port is mutually exclusive with the configuration of 802.1X
authentication, port access control method, port access control mode, and MAC authentication on
the port.
z
With port security enabled, you can change the port security mode of a port only when the port is
operating in noRestrictions mode, the default mode. You can use the
undo port-security
port-mode
command to restore the default port security mode.
z
Before configuring the port security mode to autoLearn, be sure to configure the maximum
number of secure MAC addresses allowed on the port by using the
port-security
max-mac-count
command.
z
You cannot change the port security mode of a port with users online.
Related commands:
display port-security
.
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...