Configuration Guide Port Security Commands
switchport port-security mac-address interface
Sets the static secure address in privileged
EXEC mode.
switchport port-security mac-address
Sets the static secure address in interface
configuration mode.
switchport port-security aging
Sets the aging time for the secure address.
9.10 switchport port-security maximum
Use this command to set the maximum number of port secure addresses.
Use the no form of this command to restore the default setting.
switchport port-security maximum value
no switchport port-security maximum
Maximum number of the secure address, in the range from 1 to 128.
Interface configuration mode
The number of the secure address contains the sum of static secure address and dynamically learnt
secure address, 128 by default.
If the number of the secure address you set is less than current number, it will prompt this setting
failure.
The following example sets the maximum number of the secure address to 2 for interface g 0/10.
Ruijie# configure terminal
Ruijie(config)#interface gigabitethernet 0/10
Ruijie(config-if)# switchport port-security maximum 2
Ruijie(config-if)# end
Displays port security settings.
Enables the port-security.
switchport port-security binding
Configures the secure address binding.
Switchport port-security mac-address
Sets the static secure address in the interface
configuration mode.