


Try to test your switch port security configuration with ping command and testing with the rogue laptop on the lab It’s all and enough to configure switch port security on this lab. SW1(config)#interface range fastEthernet 0/3-24, gigabitEthernet 0/1-2 Hint: Use the range keyword to apply this configuration to all the ports simultaneously. SW1(config-if-range)#switchport port-security violation restrictĮ. Set the violation so that the Fast Ethernet ports 0/1 and 0/2 are not disabled when a violation occurs, but packets are dropped from an unknown source. SW1(config-if-range)#switchport port-security mac-address stickyĭ. Secure the ports so that the MAC address of a device is dynamically learned and added to the running configuration. SW1(config-if-range)#switchport port-security maximum 1Ĭ. Set the maximum so that only one device can access the Fast Ethernet ports 0/1 and 0/2.

SW1(config-if-range)#switchport port-securityī. SW1(config-if-range)#switchport mode access SW1(config)#interface range fastEthernet 0/1-2 SW1>enableĮnter configuration commands, one per line. Access the command line for S1 and enable port security on Fast Ethernet ports 0/1 and 0/2. Port security allows you to restrict a port’s ingress traffic by limiting the MAC addresses that are allowed to send traffic to the port.Ī.

In this activity, you will configure and verify port security on a switch. These sections describe how to configure port security using the Packet Tracer – Configuring Switch Port Security Lab. A secure port and static MAC address configuration are mutually exclusive.A secure port cannot belong to an EtherCha nnel port-channel interface.A secure port cannot be a destination port for Switch Port Analyzer (SPAN).How to Configure Switch Port Security on Cisco Switches – Technig Port Security Guidelines and Restrictionsįollow these guidelines when configuring port security. To practice and learn to configure port security on Cisco switch, just download the port security packet tracer lab or create your own lab and follow the switch port security configuration guideline.ĭownload Switch Port Security Configuration Packet Tracer Lab. It provides guidelines, procedures, and configuration examples. This article describes how to configure switch port security on Cisco Switches.
