Configuring Device Information 213
Configuring Locked Port Security with CLI Commands
The following table summarizes the equivalent CLI commands for configuring Locked Port
security as displayed in the
Port Security
page.
The following is an example of the CLI commands:
Table 7-52. Port Security CLI Commands
CLI Command Description
shutdown
Disables interfaces.
set interface active {ethernet
interface | port-channel port-
channel-number}
Reactivates an interface that is shutdown due to
port security reasons.
port security [forward |
discard | discard-shutdown]
[trap seconds]
Locks learning of new addresses on an interface.
show ports security {ethernet
interface | port-channel port-
channel-number}
Displays port lock status.
Console # show ports security
Port Status Action Trap Frequency Counter
----- ------- ------- ------- --------- --------
g7 Unlocked Discard Enable 100 88
g8 Unlocked Discard,
Shutdown
Disable
g3 Unlocked - - - -