1238
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport port-security
switchport port-security
To enable port security on an interface, use the
switchport port-security
command. To disable port
security on a port, use the
no
form of this command.
switchport port-security
no switchport port-security
Syntax Description
This command has no arguments or keywords.
Command Default
Disabled
Command Modes
Interface configuration mode
Command History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to enable port security on a Layer 2 interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
switchport port-security
switch(config-if)#
This example shows how to disable port security on an interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport port-security
switch(config-if)#
Related Commands
Release
Modification
5.2(1)N1(1)
This command was introduced.
Command
Description
show port-security
Displays the port security configuration information.