Switch Port Security Configuration with Cisco Packet Tracer

switch port security

In this article, we will focus on detailed Port Security configuration. For our Port Security configuration, we will use the below topology. In this topology we will make examples for the configuration cases on Port Security.

You can DOWNLOAD the Packet Tracer example with .pkt format HERE.

switch port security topology

Switch Port Security Topology

Here we will use four scenario on four switch port. According to these scenarios, the below Port Security configuration will be done:

– max MAC 2
– 1 static MAC (PC1)
– 1 dynamic MAC (PC2)
– 1 violation (PC3)
– violation type shutdown

Switch(config)#inter fastEthernet 0/1
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport port-security
Switch(config-if)#switchport port-security maximum 2
Switch(config-if)#switchport port-security mac-address 00E0.B085.4951
Switch(config-if)#switchport port-security mac-address 0003.e445.1485
Switch(config-if)#switchport port-security violation shutdown

– max MAC 2
– 2 dynamic MAC (PC6,PC7)
– 1 violation (PC8)
– violation type restrict

Switch(config)# interface fastEthernet 0/2
Switch(config-if)# switchport mode access 
Switch(config-if)# switchport port-security 
Switch(config-if)# switchport port-security maximum 2
Switch(config-if)# switchport port-security mac-address sticky 
Switch(config-if)# switchport port-security violation restrict

We're Sorry!
Full Access is for only IPCisco Crew...
With IPCisco Membership, You Can Access:
• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: cisco IOS, Port Security, Security, packet tracer, cisco packet tracer
Back to: Cisco Hands On Course (With Packet Tracer) > Security and ACL Configurations

Comments are closed.

Cisco Hands On Course (With Packet Tracer)