Table of Contents
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 |
Ctrl +A | Move the cursor to the beginning of the command 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. |
Router>DISABLE | To go back to the use exec mode form privileged 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. |
Router>TRACERT | To track the number hops from source to 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.
Router# VERSION | Displays the router IOS version and the internal components. |
Router# SHOW RUNNING-CONFIG | Displays the current configuration of the router. |
Router# SHOW STARTUP-CONFIG | Displays the configuration stored on NVRAM. |
Router# SHOW FLASH | Shows the content of the flash memory. |
Router# SHOW INTERFACE | Displays the status and the configuration of the router interface |
Router# SHOW IP INTERFACE BRIEF | Displays the status and overview of all the interfaces of the router |
Router# SHOW CONTROLLERS 0 | Displays the hardware-specific information about the 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
STARTUP-CONFIG |
Copy the content of main memory i.e. current configuration into the NVRAM. |
Router# COPY STARTUP-CONFIG
RUNNING-CONFIG |
Copy the content of NVRAM into the main memory. |
Router# COPY RUNNING-CONFIG TFTP | Copy current configuration into TFTP server. |
Router# COPY TFTP RUNNING-CONFIG | Copy the content of TFTP server into the main 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
1234 |
Sets Privileged Mode password. |
Router(config)# enable secret 12345 | Sets privileged mode password. Enable secret password is encrypted by default |
Router(config)# line con 0 Router(config-line)#login Router(config-line)#password 123456 |
Sets console password for the router to access through the console port |
Router(config)# line aux 0 Router(config-line)#login Router(config-line)#password 123456 |
Sets the auxiliary password for the router to access through the auxiliary port |
Router(config)# line vty 0 4 Router(config-line)#login Router(config-line)#password 123456 |
Sets VTY password for the router to access through telnet. By default, the Cisco router support 5 telnet session simultaneously |
Router(config)#router rip Router(config-router)#network 172.20.0.0 |
Configures RIP protocol to the router. |
Router(config)#no router rip | Disable RIP protocol form the router. |
Router(config)#router OSPF 1
Router(config-router)#network 172.20.0.0 0.0.255.255 Area 0 |
Configures the OSPF routing protocol to the router. |
Router(config)#ip route 172.20.0.0 255.255.0.0 172.20.2.1 | Configure static routing to the router |
Router(config)#no cdp run | To disable CDP protocol from the router. |
Router(config)#cdp run | To enable CDP on the router. |
←Prev | Next→ | |
Different Modes of a Router | Setting Passwords in a Router |