
12-233
12.3 switchport port-security
Command:
switchport port-security
no switchport port-security
Function:
Configure port-security function for the interface, the no command disables port-security.
Parameter:
None.
Default:
Disable.
Command Mode:
Port mode
Usage Guide:
Clear all dynamic MACs after the interface enabled port-security, and all MACs learnt from the interfaces are tagged
with FDB_TYPE_PORT_SECURITY_DYNAMIC. After disabling port-security of the interfaces, clear all secure
MACs or change them into the dynamic MACs.
Example:
Enable port-security on the interface.
Switch(config-if- ethernet1/1)#switchport port-security
12.4 switchport port-security aging
Command:
switchport port-security aging {static | time <
value
> | type {absolute | inactivity}}
no switchport port-security violation aging {static | time | type}
Function:
Enable the aging entries of port-security, and specify the aging time and type on the interface.