Device Safety
Configure the console password
Switch (config) #line console 0Switch (config-line) #loginSwitch (config-line) #password Cisco
Configure the Vty line password
Switch (config) #line vty 0 4Switch (config-line) #loginSwitch (config-line) #password Cisco
Configure the Enable password
Switch (config) #enable password Cisco
Configuring the Secret Password
Switch (config) #enable secret Cisco
Global encryption Enabled
Switch (config) #service password-encryption
Port Security : For two-tier interface (only works in Access mode)
Switch (config) #interface fastethernet 0/1switch (config-if) #switchport mode access Switch (config-if) #switchport Access VLAN 20Switch (config-if) #switchport port-securityswitch (config-if) #switchport port-security maximum 1 // Maximum number of secure addresses, ports connected to switches/hubs, recommended to change the number of maximum, if there are 10 PCs, change to 10Switch (config-if) #switchport port-security mac-address Sticky //Auto-learning (then join Cam table) Switch (config-if) #switchport port-security mac-address AAAA. BBBB. CCCC //Manually specify MAC address switch (CONFIG-IF) #switchport port-security violation shutdown //illegal operation close port
View commands
Switch#show mac address-table // View Cam table switch#show port-security address // View port security interface0/1 // Display Interface port-security summary information
CCNA2.0 Notes _ Security Management equipment