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 Static Secure MAC Address on an Interface
You can remove a static secure MAC address on a Layer 2 interface.
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 address
4.
(Optional)
show running-config port-security
5.
(Optional)
copy running-config startup-config
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 static 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)#
Removes the static secure MAC address from port security
on the current interface.
no switchport port-security mac-address address
Example:
Step 3
switch(config-if)# no switchport port-security
mac-address 0019.D2D0.00AE
Displays the port security configuration.
(Optional)
show running-config port-security
Example:
Step 4
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
316
Configuring Port Security
Removing a Static Secure MAC Address on an Interface