Port Security
Fig 1: Port Security |
How to Enable the Port Security on Cisco Switch?
Networkeducative-Switch# configure terminal
Networkeducative-Switch(config)# interface fastethernet 0/1
Networkeducative-Switch(config-if)# switchport port-security
Networkeducative-Switch(config-if)# switchport port-security
violation shutdown
Networkeducative-Switch(config-if)# switchport port-security
mac-address sticky
Networkeducative-Switch(config-if)# switchport port-security
maximum 2
Networkeducative-Switch(config-if)# spanning-tree portfast
Networkeducative-Switch(config-if)# exit
How to remove port security?
Networkeducative-Switch# configure terminal
Networkeducative-Switch(config)# interface fastethernet 0/1
Networkeducative-Switch(config-if)# no switchport
port-security
Networkeducative-Switch(config-if)# no switchport
port-security maximum
Networkeducative-Switch(config-if)# no switchport
port-security mac-address sticky
Networkeducative-Switch(config-if)# exit
0 Comments