Switch Port Security Configuration Example

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.

 


You can download all Cisco Packet Tracer Labs on Cisco Packet Tracer Labs Page.


 

 

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)# interface 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: Port Security, Security, swicth security
Back to: CCIE Enterprise Infrastructure > Switch Security

Leave a Reply

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

Contact

  • info@ipcisco.com
IPCisco is the Winner! “Best Certification Study Journey of 2019!”

Cisco-ITBlogAwards-2019-Winner-IPCisco-k

CCIE Enterprise Infrastructure