Specifications
2-425
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
port-security mac-address
port-security mac-address
To configu re a secu re add ress on an int erfa ce for a speci fic VL AN or VLA N rang e, us e the
port-security mac-addr ess command.
port-sec uri ty mac-a ddres s mac_ address
Syntax Description
Command Modes VLAN-range inte rface submode
Usage Guidelines Layer 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 command to specify d ifferent addresses
on different VLANs.
Examples This example shows how to configure the secure a ddress 1.1.1 on interface G igabit 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 1.1.1
Switch(config-if-vlan-range)# end
Switch#
Related Commands
mac_address The MAC-address that needs to be secured.
Command Description
port-security mac-address
sticky
Configures a sticky address on an interface for a specific VLAN
or VLAN range.
port-sec urit y maxim um Configures the maximum number of addresses on an interface for
a specific VLAN or VLAN range.