Switch Port Security Configuration on 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

Lesson tags: Port Security, Security, swicth security
Back to: CCNP Switch > Port Security

Leave a Reply

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