Operating system used on Cisco devices for configuration.
This typically implies taking your laptop to the device and connecting to the console port
of the device.
Rollover Cable
to connect to your computer (and most likely an adapter)1 --- 8
2 --- 7
3 --- 6
4 --- 5
5 --- 4
6 --- 3
7 --- 2
8 --- 1
A terminal emulator is needed (i.e. Putty).
The default settings are usually enough to connect to most devices, so for the purpose of CCNA we only care about the default values.
Speed (Baud rate) = 9600
Data bits = 8
Stop bits = 1
Parity = None
Flow control = None
where:
Speed
is bits/sData bits
of data 1 Stop bit
is sentParity
: used to detect errorsFlow control
: controls the flow of data from transmitter to receiverAs shown in the following example, there is an autocomplete
feature
Router>e
% Ambiguous command: "e"
Router>e?
enable exit
Router>en
Router#
To see how a command is used, you can add a ?
at the end (notice the space before the question mark)
Router(config)#enable password?
password
Router(config)#enable password ?
7 Specifies a HIDDEN password will follow
LINE The UNENCRYPTED (cleartext) 'enable' password
level Set exec level password
Router(config)#
<cr>
(carriage return) will be displayed when the only option is to press ENTER
Router(config)#enable password TEST ?
<cr>
Router(config)#
>
in this mode 🔥user mode
Router>?
Exec commands:
<1-99> Session number to resume
connect Open a terminal connection
disable Turn off privileged commands
disconnect Disconnect an existing network connection
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 destination
Router>
If you enter the enable
command in user mode you will be placed in Privileged EXEC Mode
Router>enable
Router#
Router#?
Exec commands:
<1-99> Session number to resume
auto Exec level Automation
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
connect Open a terminal connection
copy Copy from one file to another
debug Debugging functions (see also 'undebug')
delete Delete a file
dir List files on a filesystem
disable Turn off privileged commands
disconnect Disconnect an existing network connection
enable Turn on privileged commands
erase Erase a filesystem
exit Exit from the EXEC
logout Exit from the EXEC
mkdir Create new directory
more Display the contents of a file
no Disable debugging informations
ping Send echo messages
reload Halt and perform a cold restart
Router#
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router>
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable password TEST
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#exit
Router>enable
Password:
Router#
running-config
: active config file on the device. As you enter commands in the CLI, you edit the active config file.startup-config
: config file that will be loaded upon restart of the deviceshow running-config
Router#show running-config
Building configuration...
Current configuration : 715 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
enable password TEST
!
!
!
!
!
!
ip cef
no ipv6 cef
Router#
show startup-config
Router#show startup-config
Using 694 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
Router#
There are 3 ways to save the configuration
write
Router#write
Building configuration...
[OK]
Router#
write memory
Router#write memory
Building configuration...
[OK]
Router#
copy running-config startup-config
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#
Password are stored in plain text by default
. 🔥🔥🔥
service password-encryption
commandThis commannd will use the 7
encryption algorithm for passwords, it is a proprietary encryption algorithm from Cisco.
7
is NOT a secure encryption algorithm 🔥🔥🔥Router(config)#service password-encryption
Router(config)#
show running-config
BEFORE service password-encryption
:
...
enable password TEST
...
show running-config
AFTER service password-encryption
:
...
enable password 7 0815697D3D
...
enable secret
commandThis command will result in an MD5 encrypted password instead. Old passwords will remain in the config but will not be valid.
Router(config)#enable secret ANOTHERTEST
Router(config)#
show running-config
AFTER enable secret
:
enable secret 5 $1$mERr$E6LHX/t.CDvQzXJY58S/l.
enable password 7 0815697D3D