Cisco IOS Initial Configuration Commands Cheat Sheet

A Programming › Network cheat sheet in English by Tamaranth

Commands for configuring Cisco devices

29,482 views 6,837 downloads 2 Dec 2017 History
4.8 avg · 1 rating

Switch Config­uration

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 Config­uration

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, capita­liz­ation matters!

Badges

Nice Cheat Sheet Good Cheat Sheet Downloaded from Unusual Locations × 10

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.