Specifications

2-426
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
port-security mac-address sticky
port-security m ac-address st icky
To configure a sticky address on an interface for a specific VLAN or VLAN range, use the
port-security mac-address sticky command.
port-security mac-address sticky mac_address
Syntax Description
Command Modes VLAN-range inter face submod e
Usage Guidelines T he Sticky feature must be enabled on an interface before you can configure the
port-security mac-address sticky command.
Usage Guidelines L ayer 2 interfaces can be part of multiple VLANs (for example, a typical trunk port). In conjunction with
the vlan command, you can use the port-security mac-address sticky command to specify different
sticky addresses on different VLANs.
The Sticky feature must be enabled on an interface before you can configure the
port-security mac-address sticky command.
Sticky MAC addresses are addresses that persist across switch reboots and link flaps.
Examples This exampl e shows how to configure the stic ky address 1.1.1 on interfa ce Gigabit Ethernet 1/1 for
VLANs 2-3:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# vlan 2-3
Switch(config-if-vlan-range)# port-security mac-address sticky 1.1.1
Switch(config-if-vlan-range)# end
Switch#
Related Commands
mac_address The MAC-address that nee ds to be secured.
Command Description
port-security mac-address Configures a secure address on an interface for a specific VLAN
or VLAN range.
port-security maximum Configures the maximum number of addresses on an interface for
a specific VL AN or VLAN ra nge.