0% found this document useful (0 votes)
25 views

CLI For Networking

The document provides an overview of the Cisco IOS command line interface (CLI) including: - What a CLI is and how to connect to a Cisco device via the console port using a rollover cable. - The different modes of the Cisco IOS CLI including user EXEC, privileged EXEC, and global configuration mode. - How to configure passwords like the enable password and enable secret to control access to privileged EXEC mode. - How to view and manage the running and startup configuration files. The document concludes with a quiz to test the reader's understanding of the Cisco IOS CLI topics covered.

Uploaded by

renjithkala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

CLI For Networking

The document provides an overview of the Cisco IOS command line interface (CLI) including: - What a CLI is and how to connect to a Cisco device via the console port using a rollover cable. - The different modes of the Cisco IOS CLI including user EXEC, privileged EXEC, and global configuration mode. - How to configure passwords like the enable password and enable secret to control access to privileged EXEC mode. - How to view and manage the running and startup configuration files. The document concludes with a quiz to test the reader's understanding of the Cisco IOS CLI topics covered.

Uploaded by

renjithkala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

CCNA 200-301 Day 4

Introduction to the Cisco IOS CLI


What is a CLI?

Command-line interface

The interface you use to configure Cisco ●
GUI (Graphical User Interface)
devices
How to connect to a Cisco device? (Console port)

RJ45
USB Mini-B
How to connect to a Cisco device? (Console port)
How to connect to a Cisco device? (Console port)

Rollover cable 1・ ・1
2・ ・2
3・ ・3
4・ ・4
5・ ・5
6・ ・6
7・ ・7
8・ ・8
Terminal Emulator (PuTTy)

putty.org
Cisco IOS CLI
User EXEC Mode

Router>

=user EXEC mode

hostname of the device


User EXEC mode is very limited.

Users can look at some things, but can’t make any changes to the configuration.

Also called ‘user mode’
Privileged EXEC Mode

Router>enable
Router#

=privileged EXEC mode


Provides complete access to view the device’s configuration, restart the device,
etc.

Cannot change the configuration, but can change the time on the device, save
the configuration file, etc.
Cisco IOS CLI
User EXEC Mode Privileged EXEC Mode

Use a question mark (?) to view


the available commands
Cisco IOS CLI
I pressed Tab here

Router>en
Router>enable
Router#

Router>en
Router#
Cisco IOS CLI

Router>e
% Ambiguous command: “e”
Router>

Router>e?
enable exit
Router>e
Global Configuration Mode
enable password


Passwords are case-sensitive.
enable password
enable password


The password does not display as you type it (for
security purposes).
enable password
running-config / startup-config


There are two separate configuration files kept on the device at
once.


Running-config = the current, active configuration file on the
device. As you enter commands in the CLI, you edit the active
configuration.

Startup-config = the configuration file that will be loaded upon
restart of the device.
show running-config / show startup-config
Saving the configuration
Saving the configuration
service password-encryption
service password-encryption
enable secret

5 = MD5 encryption

NOT used
canceling commands
service password-encryption

If you enable service password-encryption...



current passwords will be encrypted.

future passwords will be encrypted.

the enable secret will not be effected.

If you disable service password-encryption...



current passwords will not be decrypted.

future passwords will not be encrypted.

the enable secret will not be effected.
Modes Review

Router> = user EXEC mode

Router# = privileged EXEC mode

Router(config)# = global configuration mode


Command Review

Router>enable
##used to enter privileged EXEC mode

Router#configure terminal
##used to enter global configuration mode

Router(config)#enable password password


##configures a password to protect privileged exec mode
Command Review

Router(config)#service password-encryption
##encrypts the enable password (and other passwords)

Router(config)#enable secret password


##configures a more secure, always-encrypted enable password

Router(config)#do privileged-exec-level-command
##executes a privileged-exec level command from global
configuration mode
Command Review

Router(config)#no command
##removes the command

Router#show running-config
##displays the current, active configurtion file

Router#show startup-config
##displays the saved configuration file which will be loaded if the
device is restarted
Command Review

Router#write
##saves the configuration

Router#write memory
##saves the configuration

Router#copy running-config startup-config


##saves the configuration
QUIZ
Quiz Question 1

What kind of cable is used to connect to a Cisco device via the RJ45 console port?

a) Rollover cable
b) Crossover cable
c) USB cable
Quiz Question 1

xb) Crossover cable


A crossover cable is used to connect two devices (switch-switch,
router-router, router-PC, etc.) via Ethernet. It is not used to connect
to a Cisco device via the RJ45 console port.
Quiz Question 1

xc) USB cable


Although USB cables can be used to connect to the console of a Cisco
device, the USB console port is separate from the RJ45 console port.
Quiz Question 1

a) Rollover cable
A rollover cable is used to connect to the RJ45 console port on a Cisco
device.
Quiz Question 2

You type enable to enter privileged exec mode on your Cisco router, however the
password you enter is not accepted. What could be the problem?

a) service password-encryption is enabled.


b) service password-encryption is disabled.
c) Caps Lock is on.
Quiz Question 2

xa) service password-encryption is enabled.


xb) service password-encryption is disabled.

service password-encryption is irrelevant. It doesn’t change the


password itself, only how it is displayed in the configuration.
Quiz Question 2

c) Caps Lock is on.

Passwords are case-sensitive, so if caps lock is on it could cause you to


enter an incorrect password even if you think you’re entering it
correctly.
Quiz Question 3

What is the most secure method to protect access to privileged EXEC mode?

a) The enable secret command


b) The enable password command
c) The enable password command, with service password-encryption
Quiz Question 3

xb) The enable password command

The enable password command configures a plain-text password,


which is not secure as it can be easily read.
Quiz Question 3

xc) The enable password command, with service password-


encryption

Using service password-encryption encrypts the enable password to


make it more secure, but it is a weak form of encryption.
Quiz Question 3

a) The enable secret command

The enable secret command configures a password that is


automatically encrypted. It uses MD5, a more secure form of
encryption than the service password-encryption command.
Quiz Question 4

If both the enable password and the enable secret command are configured, what
will happen when you use enable to enter privileged EXEC mode?

a) You must enter the enable password, followed by the enable


secret.
b) You must enter the enable password only.
c) You must enter the enable secret only.
Quiz Question 5

You enter the conf t command to enter global configuration mode. What is the full-
length version of the command?

a) configuration time
b) configure terminal
c) configuration terminal
Supplementary Materials


Review flash cards (link in the description)

Packet Tracer lab

You might also like