Configuration Guide Port Security Commands
(whose address is the configured secure Mac address) connected to this port will occupy all the
bandwidth of this port exclusively.
If the violation handling mode is changed after violation occurs, the new mode takes effect only
after the violation mode is restarted.
The following example enables port security on interface gigabitethernet 1/1, and the way to deal with
violation is shutdown:
Ruijie(config)#interface gigabitethernet 1/1
Ruijie(config-if)# switchport port-security
Ruijie(config-if)# switchport port-security violation shutdown
Displays port security settings.
9.3 switchport port-security aging
Use this command to set the aging time for all secure addresses on an interface.
Use the no form of this command to restore the default setting.
switchport port-security aging {static | time time }
no switchport port-security aging {static | time }
Applies the aging time to both manually configured secure addresses
and automatically learned addresses. Otherwise, apply it to only the
automatically learned secure addresses.
Specifies the aging time for the secure address on this port. Its range
is 0-1,440 in minutes. If you set it to 0, the aging function is disabled
actually.
No secure address is aged by default.
Interface configuration mode
In interface configuration mode, use the no switchport port-security aging time command to
disable the aging for security addresses on the port. Use the no switchport port-security aging
static command to apply the aging time to only the dynamically learned security address.
Use the show port-security command to display configuration.