Chapter 4 - Using the Command-Line Interface Flashcards

1
Q

What is a CLI?

A

A CLI (Command Line Interface) is a text based interface in which the user enters text commands that are sent to the switch to tell it what to do.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the name of the Cisco switch’s operating system?

A

IOS (Internetwork Operating System)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Rollover Cable pinout?

A

A cable specifically designed to create an interface with a device. They are used to connect a PC to the console port of a networking device (e.g. Router, Switch). The pinout looks like:
1 to 8
2 to 7
3 to 6
4 to 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the parameters of the terminal emulator software that Cisco uses?

A

The below must be configured on the PCs serial port to match the switch’s console port settings

  • Baud Rate - 9600 bits per second
  • Flow Control - No hardware flow control
  • Data Bits - 8-bit ASCII
  • Parity - No parity bits
  • Stop Bits - 1 stop bit

The last 3 parameters are collectively known as 8N1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe Telnet

A

Telnet is an Application layer protocol that is used to connect to the CLI of a device using its IP. A Telnet client (the terminal application on the user’s side) accepts keyboard inputs and sends the inputted commands to a Telnet server (the switch). The server then accepts the inputted text, interprets it as a command, and replies back.Telnet is insecure as it is unencrypted (sends all text including username and passwords as plain text).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Descibe SSH

A

SSH (Secure Shell) has the same basic concept as Telnet in that you use the client terminal to connect to a Switch’s CLI via IP and input commands, however unlike Telnet it is secure. SSH encrypts all of its packets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the three CLI access methods for Cisco?

A
  • SSH
  • Telnet
  • Console
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is user EXEC mode?

A

User EXEC mode is the default mode that users are put into when connecting to a CLI using any of the three methods. User EXEC mode allows the user to look around without being able to change anything. If a command is inputted the device will describe the outcome of this command but won’t make changes to the switch.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Enable/Privileged EXEC mode?

A

Enable mode/privileged mode/privileged EXEC mode can be accessed using the enable command which moves the user from user EXEC mode to enable mode. In this mode, commands can be executed and you will actually see the outcome happen although this mode doesn’t allow you to make changes to the switch’s configuration. (E.g. entering the reload command from this mode will reboot Cisco IOS).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can you tell which mode you are in?

A

If the command prompt lists the hostname followed by a > then you are in user mode.
If the command prompt lists the hostname followed by a # then you are in enable mode.
If the command prompt lists the hostname followed by (config)# then you are in configuration mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you connect to a Cisco Switch by default?

A

By default you can only connect to a Cisco switch via the console, Telnet and SSH must be enabled from within the switch. The console doesn’t require a password by default as Cisco assumes that if you can connect to the console then you should have access to the switch anyway as you have to plug in physically. You have the option to set a password when you first connect via console or when you first switch to enable mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Configuration mode?

A

Commands entered in configuration mode will update the active configuration of the switch. These changes take place immediately after the enter key is pressed on the command. You can only move to configuration mode from enable mode and you can only move from configuration mode to enable mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are Configuration Submodes?

A

Each submode tells the switch the topic about which you will be entering the next few configuration commands. (E.g Interface is a common submode so entering ‘interface FastEthernet 0/1’ would allow the user to configure this interface specifically).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What forms of memory does Cisco use and what are their purposes?

A
  • RAM - Sometimes called DRAM (Dynamic RAM) is used for working storage. The active configuration file is stored here. As is IOS while it is in use.
  • Flash Memory - Either a chip inside the switch or a removable memory card, flash memory stores Cisco IOS images and is where Cisco IOS is retrieved from on boot. It can also be used to store other files (E.g. backups and configuration files.
  • ROM - Stores a bootstrap program that is loaded when the switch first powers on. This program finds the Cisco IOS image and manages the process of loading Cisco IOS into RAM where Cisco IOS then takes over operation of the switch.
  • NVRAM - Nonvolatile RAM stores the startup configuration file that is used when the switch is first powered on and when the switch is reloaded. The running config needs to be copied into this in order to be saved or it will be erased when the switch shuts down (copy running-config startup-config).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the two different configuration files that Cisco switches use?

A

startup-config - Stored in NVRAM, contains the initial configuration used anytime the switch reloads Cisco IOS. The running config needs to be copied into this in order to be saved or it will be erased when the switch shuts down (copy running-config startup-config).
running-config - Stored in RAM, contains the currently used configuration commands. This file changes dynamically as and when a user enters commands in configuration mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the interface number 0/0/1 equate to?

A

The first digit is the switch number, the second digit is the module number, and the last digit is the port number itsself. If you don’t have a modular switch then these will just show as two digits. The first digit can change, for example, if switch stacking is in use.

17
Q

What is the IFS?

A
  • An IFS is a way of controlling how data is stored and received
  • IO File System
  • The file system that IOS uses
  • Can be viewed using the ‘show file systems’ command
  • The types of file systems are:
    - Opaque - Represents logical internal file systems for use by internal functions and commands
    - Network - Represents external file systems found on different ypes of servers for use by commands
    - Disk - For flash memory
    - Usbflash - For USB flash memory
    - NVRAM - For NVRAM memory which is where the startup config is stored