websitelogo_transparency.png

  • Increase font size
  • Default font size
  • Decrease font size
Home CCNA 1 Cisco IOS and CLI

Cisco IOS and CLI

E-mail Print

Overview

For the Cisco CCNA you are required to know how to configure Cisco routers and Cisco switches using the command line interface (CLI) of the Cisco operating system, known as the Cisco IOS, or Internetwork Operating System.

  • RAM (temporary memory) - The IOS and the config file are loaded and run in RAM when the router boots up, but they are typically saved or stored in FLASH (IOS) and NVRAM (startup-config). The routing table is run from RAM. Routers and switches execute everything in RAM which is why they are so fast. Configuration changes are immediately executed in RAM (running-config) but can be saved to NVRAM (startup-config) to be made permanent.
  • FLASH (permanent memory) - This is where the IOS is saved
  • NVRAM (permanent memory) - This is where the startup-config file is saved
  • ROM (permanent and unchangeable) - This is where the BIOS, POST, and ROMMON are stored.


The IOS and CLI

The Cisco IOS is the Cisco operating system. The IOS is specific to the Cisco device it was designed for, having different capabilities and tools included in it.

In this way, the Cisco IOS comes in many different sizes, capabilities, specifications and revisions.  

As part of the Cisco IOS, the CLI or command line interface is included on every Cisco device including, Cisco routers, switches, and wireless access points and bridges. Most Cisco devices also have a GUI or graphical user interface. The focus of the Cisco CCNA is learning the CLI, command line interface. The command line interface is an administrative interface used to configure the Cisco device. There are three ways to access the CLI:

  • Console - the console port is a direct serial connection using a console/rollover cable attached from the Cisco device's console port to a computer serial port. Usually the initial method of configuring a router or switch, because it does not rely on networking being enabled. A console connection is also how you would recover a router with a deleted configuration file, IOS file, or forgotten password.
  • Telnet or SSH - the ability to telnet or SSH into a Cisco device is a remote administrative connection that can also be done from the local network. In order to telnet or SSH into a Cisco router or switch you will first need to bring up a network interface by configuring it with an IP address, subnet mask, and issuing the "no shutdown" command . 
  • Aux - the auxiliary port is designed to connect to a modem, for a dial in connection. this remote administrative connection can also be done locally 


The CLI has different command modes, with specific commands available in each mode. The different command modes are:

  • User exec mode - Only a few commands are available in this mode. Commands like "ping", a few of the "show" commands
  • Privileged exec mode - All of the User exec commands plus all of the "show" and "debug" commands
  • Global config mode - Access to all of configuration commands and addition configuration modes 
  • Specific sub configuration modes - interface configuration mode, router configuration mode, etc. 
Commands:
  • Router>enable
  • Router#configure terminal
  • Router#show running-config
  • Router#show startup-config
  • Router#show version
  • Router#show flash
  • Router#copy running-config startup config

Video Tutorials

In this video, I cover some CLI basics


Configure console and VTY ports for administrative access


Configure enable password, enable secret, service password-encryption, and banner motd

Backup a configuration file and IOS bin file to a TFTP server


Restore a configuration file from a TFTP Server

Restore a startup-config file from text file


Basic switch configurations including an interface VLAN1 IP address for telnet access

 

Last Updated on Friday, 13 September 2013 12:58  

Who's Online

We have 72 guests online