Cisco Catalyst 3550 Command Reference Manual page 496

Multilayer switch
Hide thumbs Also See for Catalyst 3550:
Table of Contents

Advertisement

switchport port-security
Examples
This example shows how to enable port security on Fast Ethernet port 12 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 fastethernet 0/12
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 on Fast Ethernet port 12.
Switch(config)# interface fastethernet 0/12
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security mac-address 1000.2000.3000
This example shows how to enable sticky learning:
Switch(config-if)# switchport port-security mac-address sticky
This example shows how to configure a secure MAC address on a trunk port.
Switch(config)# interface fastethernet 0/8
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security mac-address 1000.2000.3000 vlan 9
This example shows how to configure a maximum of 5 secure MAC addresses on VLAN 9.
Switch(config)# interface fastethernet 0/12
Switch(config-if)# switchport port-security maximum 5 vlan 9
You can verify the settings for all secure ports or the specified port by using the show port-security
privileged EXEC command.
Related Commands
Command
clear port-security
Catalyst 3550 Multilayer Switch Command Reference
2-470
Description
Deletes from the MAC address table a specific secure address or all
the secure addresses on an interface.
Chapter 2 Cisco IOS Commands
78-11195-09

Advertisement

Table of Contents
loading

Table of Contents