26 switchport port-security maximum – CANOGA PERKINS 9175 Command Reference User Manual

Page 62

Advertising
background image

CanogaOS Command Reference

4-18

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

maximum command. To return to the default settings, use the no form of this command.

Command Syntax

switchport port-security maximum maximum

no switchport port-security maximum

maximum :<1-4096> Maximum number of secure MAC addresses for the interface; valid values are

from 1 to 4096.

Command Mode

Interface configuration

Defaults

1

Usage

If you enter this command more than once, subsequent use of this command overrides the previous

value of maximum. If the new maximum argument is larger than the current number of the secured

addresses on this port, there is no effect except to increase the value of the maximum.

If the new maximum is smaller than the old maximum and there are more secure addresses on the old

maximum, the command is rejected.

If you configure fewer secure MAC addresses than the maximum number of secure MAC addresses on

the port, the remaining MAC addresses are dynamically learned.

Once the maximum number of secure MAC addresses for the port is reached, no more addresses are

learned on that port

Advertising