Adding A Static Secure Mac Address On An 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

Adding a Static Secure MAC Address on an Interface

3. switchport
4. [no] switchport port-security mac-address sticky
5. (Optional) show running-config port-security
6. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
Enter one of the following commands:
• interface ethernet slot/port
• interface port-channel channel-number
Example:
switch(config)# interface ethernet 2/1
switch(config-if)#
Step 3
switchport
Example:
switch(config-if)# switchport
Step 4
[no] switchport port-security mac-address sticky
Example:
switch(config-if)# switchport port-security
mac-address sticky
Step 5
(Optional) show running-config port-security
Example:
switch(config-if)# show running-config
port-security
Step 6
(Optional) copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
Adding a Static Secure MAC Address on an Interface
You can add a static secure MAC address on a Layer 2 interface.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
314
interface ethernet slot/port
• interface port-channel channel-number
Purpose
Enters global configuration mode.
Enters interface configuration mode for the interface that
you want to configure with sticky MAC address learning.
Configures the interface as a Layer 2 interface.
Enables sticky MAC address learning on the interface. The
no option disables sticky MAC address learning.
Displays the port security configuration.
Copies the running configuration to the startup
configuration.
Configuring Port Security

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents