Show Menu
Cheatography

Cisco IOS Initial Configuration Commands Cheat Sheet by

Commands for configuring Cisco devices

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!
                   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Cisco Switch Configuration Cheat Sheet
          NET-126 Commands Cheat Sheet

          More Cheat Sheets by Tamaranth

          Basic Cisco IOS Commands Cheat Sheet
          Minecraft Item IDs Cheat Sheet