hit counter script

Enabling Or Disabling Port Security On A Layer 2 Interface - Cisco Nexus 9000 Series Configuration Manual

Nx-os security configuration guide, release 9.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Enabling or Disabling Port Security on a Layer 2 Interface

Command or Action
switch# configure terminal
switch(config)#
Step 2
[no] feature port-security
Example:
switch(config)# feature port-security
Step 3
(Optional) show port-security
Example:
switch(config)# show port-security
Step 4
(Optional) copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
Enabling or Disabling Port Security on a Layer 2 Interface
You can enable or disable port security on a Layer 2 interface. By default, port security is disabled on all
interfaces.
When you disable port security on an interface, all switchport port security configuration for the interface is
lost.
Before you begin
You must have enabled port security globally.
If a Layer 2 Ethernet interface is a member of a port-channel interface, you cannot enable or disable port
security on the Layer 2 Ethernet interface.
If any member port of a secure Layer 2 port-channel interface has port security enabled, you cannot disable
port security for the port-channel interface unless you first remove all secure member ports from the port-channel
interface.
SUMMARY STEPS
1. configure terminal
2. Enter one of the following commands:
3. switchport
4. [no] switchport port-security
5. (Optional) show running-config port-security
6. (Optional) copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
312
• interface ethernet slot/port
• interface port-channel channel-number
Purpose
Enables port security globally. The no option disables port
security globally.
Displays the status of port security.
Copies the running configuration to the startup
configuration.
Configuring Port Security

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF