fbpx
Sep 03

Most Used Cisco CLI Commands

Cisco CLI

Cisco Systems is the major vendor in networking and most Network Administrators use Cisco devices in the working places. It is necessary for a Network Administrator to learn the basic Command Line Interface (CLI). In this article, some most used Cisco CLI commands are introduced and these Cisco CLI commands are useful for a Network Beginner.

The following contents are according to the Cisco routers CLI commands. When you enter the router, you will be in the User EXEC mode by default. Type the command “enable” to enter the Privileged EXEC mode. You will see the pound sign “#” instead of greater than sign “>” after the router’s name. Some basic Cisco CLI commands in the Privileged EXEC mode are listed and explained in the following.

  • enable: Turn on privileged commands
  • exit: Exit from the EXEC
  • logout: Exit from the EXEC
  • ping: Send echo messages
  • resume: Resume an active network connection
  • show: Show running system information
  • ssh: Open a secure shell client connection
  • telnet: Open a telnet connection
  • terminal: Set terminal line parameters
  • traceroute: Trace route to a destination
  • undebug: Disable debugging functions

The Cisco CLI command “configure terminal” enables you to enter the Global Configuration mode. You will see the word “configure” between parentheses followed by a pound sign “#”. The most used Cisco CLI commands are:

  • hostname WORD: this changes the router’s name to WORD
  • router eigrp 1: This setups a dynamic routing protocol eigrp 1
  • do show ip route: This shows the routing table and routes
  • do show running-config: This shows the running-configuration contents

To enter the interface configuration mode, type the command “interface fastEthernet 0/0”. This enables you to enter the number 0/0 FastEthernet interface configuration mode. Now you are able to set up the IP address.

  • Ip address 192.168.1.1 255.255.255.0: This configures a 192.168.1.1/24 ipv4 address
  • No shutdown: This activates the interface
  • exit: Exit from interface configuration mode

 

 

 

To enter the line configuration mode, type the command “line console 0” and there are some most used Cisco CLI commands:

  • line console 0: This enables the line configuration mode
  • password: Set a password
  • login: Enable password checking
  • exit: Exit from line configuration mode

To enter the line configuration mode of the virtual terminal, type the command “line vty 0 4” and there are some most used Cisco CLI commands:

  • password: Set a password
  • login: Enable password checking
  • exit: Exit from line configuration mode

After your configuration, you need to save it. Press “Ctrl+C” or type “exit” and you will go back to the Privileged EXEC mode. The most used Cisco CLI command to save the configuration is “copy running-config startup-config” and hit enter. This copies running configuration file in Random-Access Memory (RAM) to startup configuration file in Non-volatile Random-Access Memory (NVRAM).

Info about Cisco Exam

Looking for an IT Job?

Please call us on 1800 159 151, or complete the form below.

  • This field is for validation purposes and should be left unchanged.

Recent Posts

About The Author

Delivering Classroom and Live Instructor-led Training. Attend at our premises or from anywhere on any device.

COVID discounts on Job Programs end soon, register today.

Open chat