Cisco IOS Basic Commands
CCNA 200-301
Table of Contents
Cisco IOS Commands
o Cisco IOS Basic Operation Command and Keys
o User Exec mode Command
o Privileged Exec mode command
o Global configuration command
You may like to browse:
This section will explain about the Cisco IOS Basic Commands.
Cisco IOS Commands
Cisco IOS runs various commands on CLI ( Command Line
Interface) mode. It supports a large number of commands that help to
configure the Router with networking features and other router parameters.
The different working modes of router support different levels of commands.
The user-mode command supports a few commands to change terminals,
view the status of the network like ping, tracert, Enable command to enter on
to the privileged mode, etc. and other basic level commands. The following
table shows the different CLI commands supported by user mode.
Cisco IOS Basic Operation Command and Keys
Left Arrow or Ctrl+B Move the cursor by one character towards Left
Right Arrow or Ctrl+F Move the cursor by one character towards Right
Esc +B Move the Cursor Back by one Word
Esc + F Move the cursor Forward by one Word
Move the cursor to the beginning of the command
Ctrl +A
line
Ctrl +E Move the cursor to the end of the command line
Down Arrow or <Ctrl+N> Recall next command executed
Up Arrow or <Ctrl+P> Recalls the last command executed
<Ctrl+R> Refresh screen output
TAB Complete the partial command typed
Logout or Exit or Quit Exit the Router
User Exec mode Command
The user-mode command supports a few commands to change terminals,
view the status of the network like ping, tracert, Enable command to enter on
to the privileged mode, etc. and other basic level commands. The following
table shows the different CLI commands supported by user mode.
Router>ENABLE Enter the privileged exec mode.
To go back to the use exec mode form privileged
Router>DISABLE
mode.
Router>EXIT To Exit the router.
Router>LOGOUT To Exit the router.
Router>PING To test the connectivity of the network.
Router>RESUME Allow suspended telnet sessions.
Router>TELNET To connect the router through telnet.
To track the number hops from source to
Router>TRACERT
destination.
Privileged Exec mode command
The privileged mode command includes the commands supported by the
user-mode as well as the other commands. The privileged mode supports all
the Show and Copy command.
Displays the router IOS version and the internal
Router# VERSION
components.
Router# SHOW RUNNING-
Displays the current configuration of the router.
CONFIG
Router# SHOW STARTUP-
Displays the configuration stored on NVRAM.
CONFIG
Router# SHOW FLASH Shows the content of the flash memory.
Displays the status and the configuration of the
Router# SHOW INTERFACE
router interface
Router# SHOW IP INTERFACE Displays the status and overview of all the interfaces
BRIEF of the router
Displays the hardware-specific information about the
Router# SHOW CONTROLLERS 0
router interfaces
Router# SHOW IP PROTOCOLS Displays the information on routing protocols.
Router# SHOW ACCESS-LISTS Shows the current access control list configured on
the router.
Router# CDP NEIGHBOR Shows the details of CDP neighbors.
Router# IP ROUTE Displays the IP routing table entry on the router.
Router# COPY RUNNING-CONFIG
Copy the content of main memory i.e. current
configuration into the NVRAM.
STARTUP-CONFIG
Router# COPY STARTUP-CONFIG
RUNNING-CONFIG Copy the content of NVRAM into the main memory.
Router# COPY RUNNING-CONFIG
Copy current configuration into TFTP server.
TFTP
Router# COPY TFTP RUNNING- Copy the content of TFTP server into the main
CONFIG memory.
Router# COPY FLASH TFTP Copy the IOS image into TFTP server.
Router# COPY TFTP FLASH Copy the IOS image into flash.
Global configuration command
When we type in the configure terminal, we move into the global
configuration mode. The configuration command in this mode will entirely
change the router parameters. Global mode further classifies different
specific configuration modes such as interface configuration mode, line
configuration mode, sub-interface mode, etc.
Router(config)# enable password
Sets Privileged Mode password.
1234
Router(config)# enable secret Sets privileged mode password. Enable secret
12345 password is encrypted by default
Router(config)# line con 0
Router(config-line)#login Sets console password for the router to access
Router(config-line)#password through the console port
123456
Router(config)# line aux 0
Router(config-line)#login Sets the auxiliary password for the router to
Router(config-line)#password access through the auxiliary port
123456
Router(config)# line vty 0 4
Sets VTY password for the router to access
Router(config-line)#login
through telnet. By default, the Cisco router
Router(config-line)#password
support 5 telnet session simultaneously
123456
Router(config)#router rip
Router(config-router)#network Configures RIP protocol to the router.
172.20.0.0
Router(config)#no router rip Disable RIP protocol form the router.
Router(config)#router OSPF 1
Router(config-router)#network Configures the OSPF routing protocol to the
172.20.0.0 0.0.255.255 Area 0
router.
Router(config)#ip route
172.20.0.0 255.255.0.0 Configure static routing to the router
172.20.2.1
Router(config)#no cdp run To disable CDP protocol from the router.
Router(config)#cdp run To enable CDP on the router.