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:

1.port
– 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

2.port
– 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

Lesson tags: cisco IOS, Port Security, Security, packet tracer, cisco packet tracer
Back to: Cisco Packet Tracer Lab Course > Security and ACL Configurations

Leave a Reply

Your email address will not be published. Required fields are marked *




Cisco Packet Tracer Lab Course