Switchport Port-Security Mac-Address Sticky - Cisco Nexus 7000 Series Command Reference Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

S Commands

switchport port-security mac-address sticky

To enable the sticky method for learning secure MAC addresses on a Layer 2 Ethernet interface or Layer 2
port-channel interface, use the switchport port-security mac-address sticky command. To disable the sticky
method and return to the dynamic method, use the no form of this command.
switchport port-security mac-address sticky
no switchport port-security mac-address sticky
Syntax Description
This command has no arguments or keywords.
Command Default
The sticky method of secure MAC address learning is disabled by default.
Command Modes
Interface configuration
Command History
Release
4.2(1)
4.0(1)
Usage Guidelines
You must enable port security by using the feature port-security command before you can use the switchport
port-security mac-address sticky command.
Before using this command, you must use the switchport command to configure the interface to operate as
a Layer 2 interface.
This command does not require a license.
Examples
This example shows how to enable the sticky method of learning secure MAC addresses on the Ethernet 2/1
interface:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# switchport port-security mac-address sticky
switch(config-if)#
Related Commands
Command
feature port-security
show port-security
switchport port-security mac-address sticky
Modification
Support for Layer 2 port-channel interfaces was added.
This command was introduced.
Description
Enables port security globally.
Shows information about port security.
Cisco Nexus 7000 Series Security Command Reference
681

Advertisement

Table of Contents
loading

Table of Contents