Cisco Catalyst 4500 Series Configuration Manual page 1161

Ios software configuration guide isco ios xe 3.9.0e and ios 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastethernet 5/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security mac-address sticky
Switch(config-if)# switchport port-security maximum 1 vlan voice
Switch(config-if)# switchport port-security maximum 1 vlan access
Switch(config-if)# end
The following example shows how to configure a port to shut down only the VLAN if a violation occurs:
Switch(config)# interface gigabitethernet 5/1
Switch(config)# switchport port-security violation shutdown vlan
Sending traffic to the ports causes the system to configure the port with sticky secure addresses.
Note
You can verify your settings by using the show port-security address privileged EXEC command.
Related Commands
Command
show interfaces switchport
show port-security
switchport block
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release XE 3.9.xE and 15.2(5)Ex
Description
Displays the administrative and operational status of a
switching (nonrouting) port.
Displays the port security settings for an interface or for the
switch.
Prevents the unknown multicast or unicast packets from
being forwarded.
switchport port-security
2-1111

Advertisement

Table of Contents
loading

Table of Contents