EasyManua.ls Logo

Cisco Nexus 5500 Series - Page 247

Cisco Nexus 5500 Series
460 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1241
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport port-security mac-address
switchport port-security mac-address
To add a static secure MAC address on a Layer 2 interface or to enable sticky MAC address learning on
an interface, use the switchport port-security mac-address command. To revert to the default settings,
use the no form of this command.
switchport port-security mac-address {MAC-addr [vlan vlan-ID] | sticky}
no switchport port-security mac-address {MAC-addr [vlan vlan-ID] | sticky}
Syntax Description
Command Default None
Command Modes Interface configuration mode
Command History
Usage Guidelines This command does not require a license.
Examples This example shows how to configure a static secure MAC address on a port:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# switchport port-security mac-address 0050.3e8d.6400
switch(config-if)#
This example shows how to enable port security with sticky MAC addresses on a port:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# switchport port-security mac-address sticky
switch(config-if)#
This example shows how to remove a MAC address from the list of secure MAC addresses:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# no switchport port-security mac-address 0050.3e8d.6400
switch(config-if)#
MAC-addr MAC address in the format E.E.E.
vlan vlan-ID (Optional) Specifies the VLAN on which the MAC address should be
secured. The range is from 1 to 4094.
sticky Configures the dynamic MAC addresses as sticky on an interface.
Release Modification
5.2(1)N1(1) This command was introduced.

Other manuals for Cisco Nexus 5500 Series

Related product manuals