Users Guide

Table Of Contents
mac address-table static
Configures a static entry for the Layer 2 MAC address table.
Syntax
mac address-table static mac-address vlan vlan-id interface {ethernet node/
slot/port[:subport] | port-channel number}
Parameters
mac-address Enter the MAC address to add to the table in nn:nn:nn:nn:nn:nn format.
vlan vlan-id Enter the VLAN to apply the static MAC address to, from 1 to 4093.
interface Enter the interface type:
ethernet node/slot/port[:subport] Enter the Ethernet information.
port-channel channel-number Enter a port-channel interface number, from 1 to 128.
Default Not configured
Command Mode CONFIGURATION
Usage
Information
If you configure the switchport port-security command on an interface, you can configure MAC
address learning limit, sticky MAC address, and control MAC move.
The no version of this command resets the value to the default.
Example (VLAN)
OS10(config)# mac address-table static 34:17:eb:f2:ab:c6 vlan 1
interface ethernet 1/1/30
Example (Port-
Channel)
OS10(config)# mac address-table static 34:17:eb:02:8c:33 vlan 10
interface port-channel 1
Supported
Releases
10.2.0E or later
show switchport port-security
Displays port security information of interfaces.
Syntax
show switchport port-security [interface {ethernet node/slot/port[:subport]
| port-channel port-channel-number}]
Parameters
interface Displays the interface type:
ethernet node/slot/port[:subport] Displays the port security information of an
Ethernet interface.
port-channel channel-number Displays the port security information of an Ethernet
interface, from 1 to 128.
Default
None
Command Mode EXEC
Usage
Information
This command displays port security information of all interfaces.
Example
(Address)
OS10# show switchport port-security
Global Port-security status :Enable
Interface name : eth1/1/1
Port Security :Enabled
Port Status :Error-Disable
Mac learn limit :100
MAC-learn-limit-Violation action :Shutdown
Sticky :Disabled
Mac-move-allow :Not Allowed
mac-move-violation action :shutdown-both
Security 1401