Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
5.7 Configure and verify Layer 2 security features

Packet Tracer activity5.2.2.7ccna29 min

5.2.2.7 Packet Tracer - Configuring Switch Port Security Instructions

Want it marked as you type? Install the lab panel once and Packet Tracer shows your marks and a tutor you can ask.

Topology

The topology for Configuring Switch Port Security, in the Packet Tracer window. Switch S1 has two cables leaving it, one up to PC1 and one down to PC2, and all four link lights are green. A fourth device, a laptop labelled Rogue Laptop, sits below and to the left of S1 with no cable at all: it is in the file but not plugged in. No IP addresses, subnet masks or interface names are printed on this figure.

Addressing Table

DeviceInterfaceIP AddressSubnet Mask
S1VLAN 110.10.10.2255.255.255.0
PC1NIC10.10.10.10255.255.255.0
PC2NIC10.10.10.11255.255.255.0
Rogue LaptopNIC10.10.10.12255.255.255.0

Objective

Part 1: Configure Port Security

Part 2: Verify Port Security

Background

In this activity, you will configure and verify port security on a switch. Port security allows you to restrict a port’s ingress traffic by limiting the MAC addresses that are allowed to send traffic into the port.

Part 1: Configure Port Security

a. Access the command line for S1 and enable port security on Fast Ethernet ports 0/1 and 0/2.

S1(config)# interface range fa0/1 - 2
S1(config-if-range)# switchport port-security

b. Set the maximum so that only one device can access the Fast Ethernet ports 0/1 and 0/2.

S1(config-if-range)# switchport port-security maximum 1

c. Secure the ports so that the MAC address of a device is dynamically learned and added to the running configuration.

S1(config-if-range)# switchport port-security mac-address sticky

d. Set the violation so that the Fast Ethernet ports 0/1 and 0/2 are not disabled when a violation occurs, but a notification of the security violation is generated and packets from the unknown source are dropped.

S1(config-if-range)# switchport port-security violation restrict

e. Disable all the remaining unused ports. Hint: Use the range keyword to apply this configuration to all the ports simultaneously.

S1(config-if-range)# interface range fa0/3 - 24 , gi1/1 - 2
S1(config-if-range)# shutdown

Part 2: Verify Port Security

a. From PC1, ping PC2.

b. Verify port security is enabled and the MAC addresses of PC1 and PC2 were added to the running configuration.

c. Attach Rogue Laptop to any unused switch port and notice that the link lights are red.

d. Enable the port and verify that Rogue Laptop can ping PC1 and PC2. After verification, shut down the port connected to Rogue Laptop.

e. Disconnect PC2 and connect Rogue Laptop to PC2’s port. Verify that Rogue Laptop is unable to ping PC1.

f. Display the port security violations for the port Rogue Laptop is connected to.

S1# show port-security interface fa0/2

g. Disconnect Rouge Laptop and reconnect PC2. Verify PC2 can ping PC1.

h. Why is PC2 able to ping PC1, but the Rouge Laptop is not? ______

Instructions

The Command Prompt on PC1, opened from its Desktop tab, running ipconfig /all. The banner reads Packet Tracer PC Command Line 1.0. The adapter is FastEthernet0 Connection:(default port). A green arrow in the original points at the Physical Address line, 00E0.B027.2245, which is the MAC address the port security lab tells the student to note down. The rest reads: Connection-specific DNS Suffix blank, Link-local IPv6 Address FE80::2E0:B0FF:FE27:2245, IP Address 10.10.10.10, Subnet Mask 255.255.255.0, Default Gateway 0.0.0.0, DNS Servers 0.0.0.0, DHCP Servers 0.0.0.0, and DHCPv6 Client DUID 00-01-00-01-67-0D-EC-49-00-E0-B0-27-22-45.

Show MAC address on PC: ipconfig /all
S1(config)#int fa0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport port-security
S1(config-if)#switchport port-security maximum 1
S1(config-if)#switchport port-security mac-address sticky
S1(config-if)#switchport port-security mac-address sticky 00E0.B027.2245
S1(config-if)#switchport port-security violation restrict
S1(config-if)#exit
S1(config)#int fa0/2
S1(config-if)#switchport mode access
S1(config-if)#switchport port-security
S1(config-if)#switchport port-security maximum 1
S1(config-if)#switchport port-security mac-address sticky
S1(config-if)#switchport port-security mac-address sticky 0001.647C.697E
S1(config-if)#switchport port-security violation restrict
S1(config-if)#exit
S1(config)#int range fa0/3-24
S1(config-if-range)#shutdown
S1(config-if-range)#int range gi0/1-2
S1(config-if-range)#shutdown
S1(config-if-range)#end
S1#show port-security interface fa 0/1

Your answers

Nothing here is marked. Most of these answers are read off your own machine, so there is no right value to compare them against; they are kept so your work survives.

Check your answersEvery question in this lab, answered. Take your own capture first.→

Source: itexamanswers.net