25 switchport port-security, 26 switchport port-security maximum – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 76
![background image](/manuals/651410/76/background.png)
CanogaOS Command Line Reference
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 76 of 855
Switch# clear port-security address-table static
This example shows how to clear static port-security mac address-table on eth-0-1.
Switch# clear port-security address-table dynamic interface eth-0-1
Related Commands
show mac address-table
4.25 switchport port-security
To enable port security on an interface, use the switchport port-security command. To disable port
security, use the no form of this command.
Command Syntax
switchport port-security
no switchport port-security
Command Mode
Interface configuration
Defaults
disabled
Usage
When disable port-security, all the port-security mac address learned dynamically will be cleared. The
static port-security mac address will be disabled but not be cleared.
Examples
This example shows how to enable port security on an interface.
Switch(config-if)# switchport port-security
This example shows how to disable port security on an interface.
Switch(config-if)# no switchport port-security
Related Commands
show port-security interface
4.26 switchport port-security maximum
To set the maximum number of secure MAC addresses on a port, use the switchport port-security