Cisco ME 3400 Command Reference Manual page 712

Ethernet access switch
Table of Contents

Advertisement

switchport port-security
Examples
This example shows how to enable port security on a port and to set the maximum number of secure
addresses to 5. The violation mode is the default, and no secure MAC addresses are configured.
Switch(config)# interface gigabitethernet 0/2
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security maximum 5
This example shows how to configure a secure MAC address and a VLAN ID on a port.
Switch(config)# interface gigabitethernet 0/2
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security mac-address 1000.2000.3000 vlan 3
This example shows how to enable sticky learning and to enter two sticky secure MAC addresses on a
port:
Switch(config)# interface gigabitethernet 0/2
Switch(config-if)# switchport port-security mac-address sticky
Switch(config-if)# switchport port-security mac-address sticky 0000.0000.4141
Switch(config-if)# switchport port-security mac-address sticky 0000.0000.000f
You can verify your settings by using the show port-security privileged EXEC command.
Related Commands
Command
clear port-security
show port-security
show port-security
interface interface-id
Cisco ME 3400 Ethernet Access Switch Command Reference
2-684
If you disable sticky learning and enter the switchport port-security mac-address sticky
mac-address interface configuration command, an error message appears, and the sticky secure
MAC address is not added to the running configuration.
address
Chapter 2 Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands
Description
Deletes from the MAC address table a specific type of secure address
or all the secure addresses on the switch or an interface.
Displays all the secure addresses configured on the switch.
Displays port security configuration for the switch or for the
specified interface.
OL-9640-10

Advertisement

Table of Contents
loading

Table of Contents