Cheatography
https://cheatography.com
Commands for configuring Cisco devices
Switch Configuration
Switch(config)# ho S1
S1(config)# ena sec class
S1(config)# ser pass
S1(config)# banner motd #Banner goes here#
S1(config)# login block-for 120 attempts 3 within 60
S1(config)# security pass min 8
S1(config)# line con 0
S1(config-line)# pass cisco
S1(config-line)# login
S1(config-line)# exec-timeout 10
S1(config-line)# line vty 0 15
S1(config-line)# pass cisco
S1(config-line)# login
S1(config-line)# exec-timeout 10
S1(config-line)# int vlan 1
S1(config-if)# ip add 192.168.1.2 255.255.255.0
S1(config-if)# no shut
S1(config-if)# description Description goes here
S1# cop r s |
|
|
Router Configuration
Router(config)# ho R1
R1(config)# ena sec class
R1(config)# ser pass
R1(config)# no ip dom lo
R1(config)# banner motd #Banner goes here#
R1(config)# login block-for 120 attempts 3 within 60
R1(config)# security pass min 8
R1(config)# line con 0
R1(config-line)# pass cisco
R1(config-line)# login
R1(config-line)# exec-timeout 10
R1(config-line)# line vty 0 15
R1(config-line)# pass cisco
R1(config-line)# login
R1(config-line)# exec-timeout 10
R1(config-if)# int g0/0
R1(config-if)# ip add 192.168.1.1 255.255.255.0
R1(config-if)# no shut
R1(config-if)# description Description goes here
R1# cop r s |
Enabling SSH
R1(config)# ip domain-name CCNA-labs.com
R1(config)# cry key gen rsa general-keys mod 1024
R1(config)# username Bob secret cisco
R1(config)# line vty 0 15
R1(config-line)# login local
R1(config-line)# transport input ssh |
Note: With the ip domain-name
command, capitalization matters!
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Tamaranth