55-20
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 55 Configuring Port Security
Configuring Port Security on Trunk Ports
5 3 0
6 3 0
Switch#
Switch#
show running interface gi1/1
Building configuration...
Current configuration : 161 bytes
!
interface GigabitEthernet1/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport port-security
switchport port-security maximum 3 vlan
end
Example 2: Configuring a Maximum Limit of Secure MAC Addresses for Specific VLANs
This example shows how to configure a secure MAC-address on interface g1/1 in a specific VLAN or
range of VLANs:
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
interface g1/1
Switch(config-if)#
switchport trunk encapsulation dot1q
Switch(config-if)#
sw mode trunk
Switch(config-if)#
switchport port-security
Switch(config-if)#
vlan-range 2-6
Switch(config-if-vlan-range)#
port-security maximum 3
Switch(config-if)#
exit
Switch#
show port-security interface g1/1 vlan
Default maximum: not set, using 3072
VLAN Maximum Current
2 3 0
3 3 0
4 3 0
5 3 0
6 3 0
Switch#
Example 3: Configuring Secure MAC Addresses in a VLAN Range
This example shows how to configure a secure MAC-address in a VLAN on interface g1/1:
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
interface g1/1
Switch(config-if)#
switchport trunk encapsulation dot1q
Switch(config-if)#
sw mode trunk
Switch(config-if)#
switchport port-security
Switch(config-if)#
switchport port-security mac-address sticky
Switch(config-if)#
vlan-range 2-6
Switch(config-if-vlan-range)#
port-security mac-address 1.1.1
Switch(config-if-vlan-range)#
port-security mac-address sticky 1.1.2
Switch(config-if-vlan-range)#
port-security mac-address sticky 1.1.3
Switch(config-if-vlan-range)#
exit
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...