SlideShare a Scribd company logo
CCNA Command Summary Cheat Sheet

                          Basic Router Commands
To get into Privilege Mode from User                                                 enable
mode
To exit out of Privilege mode                                                        disable

To exit the router                                                              Exit or logoff

Previous Command                                                           Up arrow or Ctrl-P

Next Command                                                            Down arrow or Ctrl-N

Move forward one character                                               Right arrow or Ctrl-F

Move back one character                                                   Left arrow or Ctrl-B

Break Key or Cancel                                                                <ctrl>“c”

Auto Complete the command                                                             <tab>

                                  Setting Passwords
Set Password for Console Port                                              line console 0
                                                                                login
                                                                        password password
Set Password for Telnet                                                      line vty 0 4
                                                                                login
                                                                        password password
Set Password for Privilege (Enabled) mode                            enable password password

Set Encrypted password for Privilege mode                            enable password password

                     Router Configuration Commands
To go from Privilege mode to Global                                        configure terminal
Configuration mode
To copy the running-configuration to the                                       copy run start
start-up configuration

                                                                                                 1

                        Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
To copy the startup-config to the running-                                      copy start run
config
To copy the startup-config to a TFTP                                            copy start tftp
server
To copy the running-config to a TFTP                                             copy run tftp
server
Save a backup of the IOS to a TFTP server                                       copy flash tftp

Upgrade the IOS from a TFTP server                                              copy tftp flash

Tell the router which IOS in flash to boot                           boot system flash {filename}
from
Tell the Router which IOS to request from                             boot system tftp {filename}
a TFTP server (usually a fallback option)
                   Viewing the Router’s Information
IOS Version info                                                                 show version

Current config stored in RAM                                               show running-config

Configuration stored in NVRAM                                              show startup-config

To see IOS info stored in flash                                                    show flash

To see information on the interfaces                                           show interfaces

To see a summary of the interfaces                                            show ip int brief

To see processor utilization                                                show processes cpu

                          Configuring an Interface
To access an interface                                                   “From Global config”
                                                                      interface {type} {number}
                                                                     example : interface Ethernet 0
To set Clock rate on a serial interface                                   Clock rate {kbps}
                                                                      Example : clock rate 64000
Enable the interface                                                         no shutdown

Disable the interface                                                              shutdown

Assign an IP address to an Interface                         ip address {Ip address} {subnet mask}
                                                             Example: ip address 10.1.1.1 255.255.255.0
                                Configuring TCP/IP
To enable IP routing on a Router                                           “From Global config”
                                                                                ip routing
To disable IP routing on a Router                                          “From Global config”
                                                                               no ip routing

                                                                                                          2

                         Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
Displays values about routing timers,                                       show ip protocols
networks, and routing information.

Displays contents of the routing table.                                        show ip route

Assign an IP address to an Interface                        ip address {Ip address} {subnet mask}
                                                            Example: ip address 10.1.1.1 255.255.255.0

Manually setups up a host table mapping a                          ip host name “ ip” “addresss”
hostname to an ip address.
Displays the host table                                                     show hosts
Configure RIP                                                               router rip
                                                                    network “network address”
Configure IGRP                                                              Router rip
                                                                    Network “network address”
Displays RIP updates                                                       debug ip rip
Displays IGRP transactions                                          debug ip igrp transactions
Displays IGRP summary transactions                                     Debug ip igrp events
Displays status and global parameters                                   show ip interfaces
associated with an interface
Allows remote management of a device                                  telnet “ip address of host”
Uses ICMP to verify hardware connection                                ping “network address”
and logical address of the network layer
To setup a static route                                    ip route “network” “mask” “next hop address”
                                  IPX configuration
Enable IPX on a router                                                     ipx routing
To enable load balancing                                          ipx maximum-paths “number”
To assign a IPX network address to an                             ipx network “network number”
interface
To set the encapsulation type on an                                  encap novell-ether
interface                                                            encap sap
                                                                     encap arpa
                                                                     encap snap
To view the IPX routing table                                        show ipx route
To view an IPX address on an interface                               show ipx interface
To view the sap table                                                show ipx servers
To view IPX traffic statistics                                       show ipx traffic
To view the IPX rip updates                                          debug ipx routing activity
To view the SAP packets coming and                                   debug ipx sap
going
                         Cisco Discovery Protocol
See info on directly connected neighbors                                  show cdp neighbors
Add “detail” to the end for more info
To see what interfaces are runnning CDP                                    show cdp interface

To specify and particular neighbor and see                          show cdp entry “hostname”
CDP information
                                                                                                         3

                        Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
To turn off CDP for the entire router                                            no cdp run

To turn off CDP for an interface                                             No cdp enable
To change how often the router sends CDP                                  cdp timer “seconds”
updates
To change how long the router will wait                                cdp holdtime “seconds”
before it’s removes a CDP neighber from
it’s table




                                         Access-Lists
IP Standard Access Lists 1-99                              access-list access-list-number,
Set parameters for this access list                      permit |deny, source, [source-mask]
test statement
Enable an interface to become part                        protocol access-group access-list-
of a group that uses the specified                                 number, in | out
access list.
IP Extended Access Lists 100-199                         access-list Access-list-number,
Set parameters for this access list                      permit |deny, protocol, source,
entry                                                    source-mask,
                                                         destination, destination-mask,
                                                         [operator
                                                               operand], [established]
Enable an interface to become part                             protocol access-group access-
of a group that uses the specified                             list-number, in | out
access list.
Assigns an alpha-numeric name                                        ip access-list standard |
string to an access list                                             extended name
Activates the access list on an                                      ip access-group name | 1-199,
interface                                                            in | out
Can be used to verify whether                                        show ip interfaces
access lists are set
Displays the contents of all access                                  show access-lists
lists
IPX Standard Access Lists 800-899                        access-list Access-list-number,
Set parameters for this access list                      permit | deny, source-network
entry                                                    [.source-node],
                                                         [source-node-mask], [destination-
                                                         network],
                                                         [.destination-node] [destination-
                                                         node-
                                                               mask]
Enable an interface to become part                             ipx access-group access-list-
of a group that uses the specified                             number, in | out
access list.
IPX Extended Access Lists 900-999                           access-list Access-list-number,
Set parameters for this access list                                      permit |
entry                                                        deny, protocol, source-network
                                                         [[[.source-node]source-node-mask] |
                                                                      [.source-node
                                                           source-network-mask.source-node-
                                                                         mask]],
                                                            [source-socket], [destination-
                                                                      network],[[[.
                                                         destination-node] destination-node-
                                                               mask] | [destination-node
                                                                  destination-network-
                                                                                                 4

                        Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
mask.destination-node-mask]],
                                                           [destination-socket], [log]

Enable an interface to become part                              ipx access-group access-list-
of a group that uses the specified                                     number, in | out
access list.
IPX SAP Filter Access Lists 1000-                      access-list Access-list-number,
1099                                                               permit |
Creates an entry in a SAP filter                      deny, network [.node], [network-
list                                                                 mask
                                                     node-mask], [service-type [server-
                                                                    name]]

Activates the output SAP filter on                              ipx output-sap-filter access-
the interface                                                   list-number
Activates the input SAP filter on                                ipx input-sap-filter access-
the interface                                                             list-number
Displays information about the                                  show ipx interface
config of the interface including
SAP filter numbers.




                           WAN configuration
PPP Authentication
On each router defines the username                       username name password secret
and password to
expect from the remote router

Configure the interface for ppp                                      encapsulation ppp
encapsulation
Configure ppp authentication type                    PPP authentication chap | chap pap
                                                               |pap chap | pap

Enables PAP on an interface                                     ppp pap sent-username
(disabled by default)                                           username password password
To use the same host name on                                    ppp chap hostname hostname
multiple routers
Use to authenticate to an unknown                               ppp chap password secret
host. This password is
not used when the router
authenticates a remote device.
Displays authentication sequence as                             debug ppp authentication
it occurs

Configuring Frame Relay
                                                                encapsulation frame-relay
Specifies encapsulation type.                                   [cisco | ietf]
Specifies LMI type used by the FR                               frame-relay lmi-type ansi |
switch. (default cisco)                                         cisco | q933i

Inverse ARP is enabled by default.                              frame-relay inverse-arp
If it has been disabled use this                                [protocol] [dlci]
command to enable it.

Used to define the address to DLCI                  frame-relay map protocol protocol-
table statically.                                   address
                                                    dlci [broadcast] [ietf | cisco ]

                                                                                              5

                   Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
Displays the route maps (static or                              show frame-relay map
dynamic)
Displays LMI information                                        show frame-relay lmi

Selects a subinterface to configure                 interface serial
                                                    number.subinterface-number
                                                    multipoint | point-to-point

Defines the local DLCI number being                 frame-relay interface-dlci dlci-
linked to the interface                             mumber

                             Misc. Commands
Remove 10 minute interval router                    no exec-timeout or exec-timeout 0 0
waits for input
Set clock                                               clock set 20:26:00 04 July 2001
Change number of lines history will                      terminal history size “lines”
record (max 256)
Sets token ring speed to 16 Mbps                                ring-speed 16

Enables early token release                                     early-token release

Specifies a media independent                                   media-type 10baseT
interface physical connection
set the configuration register                                  config-register 0x2102
(where to boot from) 0 for
ROM Monitor, 1 for ROM, 2 NVRAM.




               www.RouterPrep.com




                                                                                          6

                   Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.

More Related Content

PDF
The bryant advantage 150 commands
PDF
Comandos routing switching
PDF
IOS Cisco - Cheat sheets
DOC
Router commands
DOC
Cisco router command configuration overview
PDF
08 ip oc304 2_e1_1 zxr10 m6000 bgp configuration 24
PDF
Ncat ccna cheat sheet
PDF
I pv4 multicast
The bryant advantage 150 commands
Comandos routing switching
IOS Cisco - Cheat sheets
Router commands
Cisco router command configuration overview
08 ip oc304 2_e1_1 zxr10 m6000 bgp configuration 24
Ncat ccna cheat sheet
I pv4 multicast

What's hot (17)

PDF
Mpls vpn.rip
PDF
ccna cheat_sheet
PPTX
Ambari: Agent Registration Flow
PPTX
Cisco CCNA- How to Configure Multi-Layer Switch
PDF
PDF
mpls-04
PDF
Cisco Commands
PDF
CCNA Lab Guide
PPTX
Cisco CCNA IPV6 Static Configuration
PDF
Ccent notes part 1
PDF
test
PDF
1reigrp
PDF
How To Train Your Calxeda EnergyCore
PDF
Service Provider Networks and Frame Relay
PPTX
Cisco CCNA CCNP VACL Configuration
PDF
Cisco commands List for Beginners (CCNA, CCNP)
Mpls vpn.rip
ccna cheat_sheet
Ambari: Agent Registration Flow
Cisco CCNA- How to Configure Multi-Layer Switch
mpls-04
Cisco Commands
CCNA Lab Guide
Cisco CCNA IPV6 Static Configuration
Ccent notes part 1
test
1reigrp
How To Train Your Calxeda EnergyCore
Service Provider Networks and Frame Relay
Cisco CCNA CCNP VACL Configuration
Cisco commands List for Beginners (CCNA, CCNP)
Ad

Viewers also liked (11)

PDF
Cisco Router Basic Configuration
PPTX
20 common port numbers and their purposes
PDF
Transport Layer Port or TCP/IP & UDP Port
DOCX
How to configure vlan, stp, dtp step by step guide
PPT
TCP/IP(networking)
PDF
Router commands
DOC
Lab practice 1 configuring basic routing and switching (with answer)
PPTX
Routers and Routing Configuration
DOC
Cisco switch commands cheat sheet
PPTX
Router configuration in packet tracer
PPSX
Packet Tracer Tutorial # 1
Cisco Router Basic Configuration
20 common port numbers and their purposes
Transport Layer Port or TCP/IP & UDP Port
How to configure vlan, stp, dtp step by step guide
TCP/IP(networking)
Router commands
Lab practice 1 configuring basic routing and switching (with answer)
Routers and Routing Configuration
Cisco switch commands cheat sheet
Router configuration in packet tracer
Packet Tracer Tutorial # 1
Ad

Similar to Ccna (20)

PPT
PPT
Introduction to-cisco-routers
PPT
Intro to router_config
PDF
Basic config in Cisco router
PPT
01c. Starting A Router
PPTX
IOS-Basic Configuration
PDF
Cisco config
PDF
Cisco config
PDF
Cisco config
PPT
CCNA presentation.
PPT
Cis82 e2-1-packet forwarding
PPT
Chapter 04 - Router Conf
PPTX
Chapter 2-Bascs of Switch & Router (1).pptx
PPTX
CCNA at a glance
PDF
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
PDF
Ccna command
PPTX
CCNA ALL IN ONE
PDF
Uccn1003 -may10_-_lect02b1_-_lan_basic_in_packet_tracer
PPT
Chapter4ccna
PPT
Chapter4ccna
Introduction to-cisco-routers
Intro to router_config
Basic config in Cisco router
01c. Starting A Router
IOS-Basic Configuration
Cisco config
Cisco config
Cisco config
CCNA presentation.
Cis82 e2-1-packet forwarding
Chapter 04 - Router Conf
Chapter 2-Bascs of Switch & Router (1).pptx
CCNA at a glance
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Ccna command
CCNA ALL IN ONE
Uccn1003 -may10_-_lect02b1_-_lan_basic_in_packet_tracer
Chapter4ccna
Chapter4ccna

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
Lesson notes of climatology university.
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharma ospi slides which help in ospi learning
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Trump Administration's workforce development strategy
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Yogi Goddess Pres Conference Studio Updates
Lesson notes of climatology university.
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Computing-Curriculum for Schools in Ghana
O7-L3 Supply Chain Operations - ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Pharma ospi slides which help in ospi learning
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
RMMM.pdf make it easy to upload and study
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Final Presentation General Medicine 03-08-2024.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Trump Administration's workforce development strategy

Ccna

  • 1. CCNA Command Summary Cheat Sheet Basic Router Commands To get into Privilege Mode from User enable mode To exit out of Privilege mode disable To exit the router Exit or logoff Previous Command Up arrow or Ctrl-P Next Command Down arrow or Ctrl-N Move forward one character Right arrow or Ctrl-F Move back one character Left arrow or Ctrl-B Break Key or Cancel <ctrl>“c” Auto Complete the command <tab> Setting Passwords Set Password for Console Port line console 0 login password password Set Password for Telnet line vty 0 4 login password password Set Password for Privilege (Enabled) mode enable password password Set Encrypted password for Privilege mode enable password password Router Configuration Commands To go from Privilege mode to Global configure terminal Configuration mode To copy the running-configuration to the copy run start start-up configuration 1 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  • 2. To copy the startup-config to the running- copy start run config To copy the startup-config to a TFTP copy start tftp server To copy the running-config to a TFTP copy run tftp server Save a backup of the IOS to a TFTP server copy flash tftp Upgrade the IOS from a TFTP server copy tftp flash Tell the router which IOS in flash to boot boot system flash {filename} from Tell the Router which IOS to request from boot system tftp {filename} a TFTP server (usually a fallback option) Viewing the Router’s Information IOS Version info show version Current config stored in RAM show running-config Configuration stored in NVRAM show startup-config To see IOS info stored in flash show flash To see information on the interfaces show interfaces To see a summary of the interfaces show ip int brief To see processor utilization show processes cpu Configuring an Interface To access an interface “From Global config” interface {type} {number} example : interface Ethernet 0 To set Clock rate on a serial interface Clock rate {kbps} Example : clock rate 64000 Enable the interface no shutdown Disable the interface shutdown Assign an IP address to an Interface ip address {Ip address} {subnet mask} Example: ip address 10.1.1.1 255.255.255.0 Configuring TCP/IP To enable IP routing on a Router “From Global config” ip routing To disable IP routing on a Router “From Global config” no ip routing 2 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  • 3. Displays values about routing timers, show ip protocols networks, and routing information. Displays contents of the routing table. show ip route Assign an IP address to an Interface ip address {Ip address} {subnet mask} Example: ip address 10.1.1.1 255.255.255.0 Manually setups up a host table mapping a ip host name “ ip” “addresss” hostname to an ip address. Displays the host table show hosts Configure RIP router rip network “network address” Configure IGRP Router rip Network “network address” Displays RIP updates debug ip rip Displays IGRP transactions debug ip igrp transactions Displays IGRP summary transactions Debug ip igrp events Displays status and global parameters show ip interfaces associated with an interface Allows remote management of a device telnet “ip address of host” Uses ICMP to verify hardware connection ping “network address” and logical address of the network layer To setup a static route ip route “network” “mask” “next hop address” IPX configuration Enable IPX on a router ipx routing To enable load balancing ipx maximum-paths “number” To assign a IPX network address to an ipx network “network number” interface To set the encapsulation type on an encap novell-ether interface encap sap encap arpa encap snap To view the IPX routing table show ipx route To view an IPX address on an interface show ipx interface To view the sap table show ipx servers To view IPX traffic statistics show ipx traffic To view the IPX rip updates debug ipx routing activity To view the SAP packets coming and debug ipx sap going Cisco Discovery Protocol See info on directly connected neighbors show cdp neighbors Add “detail” to the end for more info To see what interfaces are runnning CDP show cdp interface To specify and particular neighbor and see show cdp entry “hostname” CDP information 3 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  • 4. To turn off CDP for the entire router no cdp run To turn off CDP for an interface No cdp enable To change how often the router sends CDP cdp timer “seconds” updates To change how long the router will wait cdp holdtime “seconds” before it’s removes a CDP neighber from it’s table Access-Lists IP Standard Access Lists 1-99 access-list access-list-number, Set parameters for this access list permit |deny, source, [source-mask] test statement Enable an interface to become part protocol access-group access-list- of a group that uses the specified number, in | out access list. IP Extended Access Lists 100-199 access-list Access-list-number, Set parameters for this access list permit |deny, protocol, source, entry source-mask, destination, destination-mask, [operator operand], [established] Enable an interface to become part protocol access-group access- of a group that uses the specified list-number, in | out access list. Assigns an alpha-numeric name ip access-list standard | string to an access list extended name Activates the access list on an ip access-group name | 1-199, interface in | out Can be used to verify whether show ip interfaces access lists are set Displays the contents of all access show access-lists lists IPX Standard Access Lists 800-899 access-list Access-list-number, Set parameters for this access list permit | deny, source-network entry [.source-node], [source-node-mask], [destination- network], [.destination-node] [destination- node- mask] Enable an interface to become part ipx access-group access-list- of a group that uses the specified number, in | out access list. IPX Extended Access Lists 900-999 access-list Access-list-number, Set parameters for this access list permit | entry deny, protocol, source-network [[[.source-node]source-node-mask] | [.source-node source-network-mask.source-node- mask]], [source-socket], [destination- network],[[[. destination-node] destination-node- mask] | [destination-node destination-network- 4 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  • 5. mask.destination-node-mask]], [destination-socket], [log] Enable an interface to become part ipx access-group access-list- of a group that uses the specified number, in | out access list. IPX SAP Filter Access Lists 1000- access-list Access-list-number, 1099 permit | Creates an entry in a SAP filter deny, network [.node], [network- list mask node-mask], [service-type [server- name]] Activates the output SAP filter on ipx output-sap-filter access- the interface list-number Activates the input SAP filter on ipx input-sap-filter access- the interface list-number Displays information about the show ipx interface config of the interface including SAP filter numbers. WAN configuration PPP Authentication On each router defines the username username name password secret and password to expect from the remote router Configure the interface for ppp encapsulation ppp encapsulation Configure ppp authentication type PPP authentication chap | chap pap |pap chap | pap Enables PAP on an interface ppp pap sent-username (disabled by default) username password password To use the same host name on ppp chap hostname hostname multiple routers Use to authenticate to an unknown ppp chap password secret host. This password is not used when the router authenticates a remote device. Displays authentication sequence as debug ppp authentication it occurs Configuring Frame Relay encapsulation frame-relay Specifies encapsulation type. [cisco | ietf] Specifies LMI type used by the FR frame-relay lmi-type ansi | switch. (default cisco) cisco | q933i Inverse ARP is enabled by default. frame-relay inverse-arp If it has been disabled use this [protocol] [dlci] command to enable it. Used to define the address to DLCI frame-relay map protocol protocol- table statically. address dlci [broadcast] [ietf | cisco ] 5 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.
  • 6. Displays the route maps (static or show frame-relay map dynamic) Displays LMI information show frame-relay lmi Selects a subinterface to configure interface serial number.subinterface-number multipoint | point-to-point Defines the local DLCI number being frame-relay interface-dlci dlci- linked to the interface mumber Misc. Commands Remove 10 minute interval router no exec-timeout or exec-timeout 0 0 waits for input Set clock clock set 20:26:00 04 July 2001 Change number of lines history will terminal history size “lines” record (max 256) Sets token ring speed to 16 Mbps ring-speed 16 Enables early token release early-token release Specifies a media independent media-type 10baseT interface physical connection set the configuration register config-register 0x2102 (where to boot from) 0 for ROM Monitor, 1 for ROM, 2 NVRAM. www.RouterPrep.com 6 Copyright © 2001 TNS Consulting Group, Inc. All rights reserved.