Switchport security CCNA lab
🔒
Unauthorized Access
This interactive lab is exclusively licensed to PacketTracerLab.com and cannot be used on any other domain or offline environment.
Visit PacketTracerLab.com⚠ Unauthorized use or redistribution is prohibited.
Lab 11
Port Security — FastEthernet 0/2
Switch terminal ready — type a command to begin
Lab Tasks
Set Fa0/2 to access mode
Enable port security on Fa0/2
Max MAC addresses → 1
Violation mode → shutdown
Test: connect unknown device → port shuts down
Command Guide
int fa0/2
switchport mode access
switchport port-security
switchport port-security
maximum 1
switchport port-security
violation shutdown
switchport mode access
switchport port-security
switchport port-security
maximum 1
switchport port-security
violation shutdown
How It Works
port-security locks
a port to max 1 MAC.
violation shutdown
— port goes err-disabled
if a 2nd device connects.
Use sh port-sec int fa0/2
to verify the config.
a port to max 1 MAC.
violation shutdown
— port goes err-disabled
if a 2nd device connects.
Use sh port-sec int fa0/2
to verify the config.
Switch (SW1)
Switch">>