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.