100% found this document useful (2 votes)
4K views4 pages

(CCNA) Cisco Commands Cheat Sheet #1 - Boubakr Tech PDF

The document discusses various router and switch configuration modes and commands. It provides examples of how to change the hostname, configure passwords, secure console and terminal lines, encrypt passwords, configure banners, assign IP addresses, set the default gateway, save configurations, configure the working environment, use SSH, create command aliases, configure interface descriptions, speeds and duplex settings, and verify the basic switch configuration.

Uploaded by

PrabhashKumarJha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
4K views4 pages

(CCNA) Cisco Commands Cheat Sheet #1 - Boubakr Tech PDF

The document discusses various router and switch configuration modes and commands. It provides examples of how to change the hostname, configure passwords, secure console and terminal lines, encrypt passwords, configure banners, assign IP addresses, set the default gateway, save configurations, configure the working environment, use SSH, create command aliases, configure interface descriptions, speeds and duplex settings, and verify the basic switch configuration.

Uploaded by

PrabhashKumarJha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

4/13/2016

[CCNA]CiscoCommandsCheatSheet#1|BoubakrTech

RouterModes:
Router>:Usermode=Limitedtobasicmonitoringcommands
Router#:Privilegedmode(execlevelmode)=Providesaccesstoallotherroutercommands
Router(config)#:globalconfigurationmode=Commandsthataffecttheentiresystem
Router(configif)#:interfacemode=Commandsthataffectinterfaces
Router(configsubif)#:subinterfacemode=Commandsthataffectsubinterfaces
Router(configline)#:linemode=Commandsthataffectinlinesmodes(console,vty,aux)
Router(configrouter)#:routerconfigurationmode

Changingswitchhostname:
1

Switch(config)#hostnameSW1

Configuringpasswords:
1
2

SW1(config)#enablesecretcisco!MD5hash
SW1(config)#enablepasswordnotcisco!Cleartext

Securingconsoleport:
1
2
3

SW1(config)#linecon0
SW1(configline)#passwordcisco
SW1(configline)#login

Securingterminallines:
1
2
3

SW1(config)#linevty04
SW1(configline)#passwordcisco
SW1(configline)#login

Encryptingpasswords:
1

SW1(config)#servicepasswordencryption

Configuringbanners:
1
2
3
4
5

SW1(config)#bannermotd$
================
UNAUTHORIZEDACCESSISPROHIBITED
================
$

GivingtheswitchanIPaddress:
1
2
3

SW1(config)#interfacevlan1
SW1(configif)#ipaddress172.16.1.11255.255.255.0!orDHCP
SW1(configif)#noshutdown

https://boubakr92.wordpress.com/2013/09/16/ccnacheatsheetpart1/

1/4

4/13/2016

[CCNA]CiscoCommandsCheatSheet#1|BoubakrTech

Settingthedefaultgateway:
1

SW1(config)#ipdefaultgateway172.16.1.1

Savingconfiguration:
1
2
3
4
5
6
7
8
9

SW1#copyrunningconfigstartupconfig
Destinationfilename[startupconfig]?!Pressentertoconfirmfilename.
Buildingconfiguration
[OK]

!Shortforwritememory.
SW1#wr
Buildingconfiguration
[OK]

Workingenvironment:
namelookup,history,exectimeoutandloggingbehavior,alsovalidforlinecon0.
1
2
3
4
5

SW1(config)#noipdomainlookup
SW1(config)#linevty04
SW1(configline)#historysize15
SW1(configline)#exectimeout1030
SW1(configline)#loggingsynchronous

ConfiguringswitchtouseSSH:
ConfigureDNSdomainname:
1

SW1(config)#ipdomainnameexample.com
Configureausernameandpassword:

SW1(config)#usernameadminpasswordcisco
Generateencryptionkeys:

Thesizeofthekeymodulusintherangeof360to2048
1
2

SW1(config)#cryptokeygeneratersa
Howmanybitsinthemodulus[512]:1024
DefineSSHversiontouse:

SW1(config)#ipsshversion2
EnablevtylinestouseSSH:

1
2
3
4

SW1(config)#linevty04
SW1(configline)#loginlocal
!Youcansetvtylinestouseonlytelnetoronlysshorbothasintheexample.
SW1(configline)#transportinputtelnetssh

https://boubakr92.wordpress.com/2013/09/16/ccnacheatsheetpart1/

2/4

4/13/2016

[CCNA]CiscoCommandsCheatSheet#1|BoubakrTech

Aliases:
Usedtocreateshortcutsforlongcommands.
1
2
3

SW1(config)#aliasexeccconfigureterminal
SW1(config)#aliasexecsshowipinterfacebrief
SW1(config)#aliasexecsrshowrunningconfig

Description,speedandduplex:
1
2
3
4
5
6

SW1(config)#interfacefastEthernet0/1
SW1(configif)#descriptionLINKTOINTERNETROUTER
SW1(configif)#speed100!Options:10,100,auto
!Therangekeywordusedtosetagroupofinterfacesatonce.
SW1(config)#interfacerangefastEthernet0/510
SW1(configifrange)#duplexfull(options:half,full,auto)

VerifyBasicConfiguration:
Showsinformationabouttheswitchanditsinterfaces,RAM,NVRAM,flash,IOS,etc.
1

SW1#showversion
ShowsthecurrentconfigurationfilestoredinDRAM.

SW1#showrunningconfig
ShowstheconfigurationfilestoredinNVRAMwhichisusedatfirstbootprocess.

SW1#showstartupconfig
Liststhecommandscurrentlyheldinthehistorybuffer.

SW1#showhistory
Showsanoverviewofallinterfaces,theirphysicalstatus,protocolstatusandipaddressifassigned.

SW1#showipinterfacebrief
Showsdetailedinformationaboutthespecifiedinterface,itsstatus,protocol,duplex,speed,encapsulation,last
5mintraffic.

SW1#showinterfacevlan1
Showsthedescriptionofallinterfaces

SW1#showinterfacesdescription
Showsthestatusofallinterfaceslikeconnectedornot,speed,duplex,trunkoraccessvlan.

SW1#showinterfacesstatus
ShowsthepublicencryptionkeyusedforSSH.

SW1#showcryptokeymypubkeyrsa
ShowsinformationabouttheleasedIPaddress(whenaninterfaceisconfiguredtogetIPaddressviaadhcp
server)

https://boubakr92.wordpress.com/2013/09/16/ccnacheatsheetpart1/

3/4

4/13/2016

[CCNA]CiscoCommandsCheatSheet#1|BoubakrTech

SW1#showdhcplease

https://boubakr92.wordpress.com/2013/09/16/ccnacheatsheetpart1/

4/4

You might also like