Purpose
Command or Action
switch(config-if)# show running-config
port-security
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch(config-if)# copy running-config
startup-config
Removing a Sticky Secure MAC Address
You can remove a sticky secure MAC address, which requires that you temporarily disable sticky address
learning on the interface that has the address that you want to remove.
Before you begin
You must have enabled port security globally.
SUMMARY STEPS
1.
configure terminal
2.
Enter one of the following commands:
•
interface ethernet slot
/
port
•
interface port-channel channel-number
3.
no switchport port-security mac-address sticky
4.
clear port-security dynamic address address
5.
(Optional)
show port-security address interface
{
ethernet slot
/
port
|
port-channel channel-number
}
6.
(Optional)
switchport port-security mac-address sticky
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Enters interface configuration mode for the interface from
which you want to remove a sticky secure MAC address.
Enter one of the following commands:
Step 2
•
interface ethernet slot
/
port
•
interface port-channel channel-number
Example:
switch(config)# interface ethernet 2/1
switch(config-if)#
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
317
Configuring Port Security
Removing a Sticky Secure MAC Address