Learning paths › CCNA › 1. Network Fundamentals
Cisco IOS CLI
Written reference: Learn how to connect to Cisco devices using the console port, navigate CLI modes, configure passwords, and manage startup and running configurations.
About 13 minutes
Why it matters
Almost every configuration task, on the exam and on the job, starts at the command line. Moving between modes with confidence saves time and prevents mistakes.
Navigating the Cisco Command Line Interface
Connect to a Cisco device out-of-band using a rollover cable plugged into the console port at 9600-8-N-1.
User EXEC mode (Router>) allows basic view commands; Privileged EXEC mode (Router#) is entered with 'enable'.
Global configuration mode (Router(config)#) is where settings that affect the entire device are applied.
Cisco devices maintain two configs: running-config (in volatile RAM) and startup-config (in persistent NVRAM).
Connecting via the Console Port
To configure a new Cisco router or switch without an IP address, connect a rollover cable from a computer to the device's console port.
Terminal Emulator (e.g. PuTTY) Serial Settings: • Speed / Baud Rate: 9600 • Data bits: 8 • Parity: None • Stop bits: 1 • Flow Control: None
Cisco CLI Mode Hierarchy
1. User EXEC Mode (Router>): • Very limited commands (basic pings, show version). • Cannot view full configuration.
2. Privileged EXEC Mode (Router#): • Enter by typing: enable • Provides full access to view configs, save files, run tests, and reload.
3. Global Configuration Mode (Router(config)#): • Enter by typing: configure terminal • Used to change settings that affect the entire device (hostname, passwords, banner).
4. Sub-Configuration Modes: • Interface config: Router(config-if)# • Line config: Router(config-line)# • VLAN config: Router(config-vlan)#
Managing Configuration Files
A Cisco router or switch maintains two separate configuration files: • Running-config: Active configuration file in volatile RAM. All changes made in CLI immediately alter the running-config. • Startup-config: Saved configuration in NVRAM. Used when the switch boots up.
To save your changes so they survive a reboot: Router# write memory (or: copy running-config startup-config)
The words you need
CLI — Command Line Interface. Text-based interface used to configure and monitor Cisco network devices.
Console Port — A dedicated physical management port on a router or switch used for initial out-of-band configuration.
Rollover Cable — A flat light-blue cable with reversed pinouts (pin 1 to pin 8) used to connect a PC's serial port to a Cisco console port.
User EXEC Mode — The default read-only CLI prompt indicated by '>'. Very limited commands; cannot view full config or make changes.
Privileged EXEC Mode — The administrative CLI prompt indicated by '#', accessed via 'enable'. Can view all configs, reload the device, and debug.
Global Config Mode — The configuration mode indicated by '(config)#', accessed via 'configure terminal'. Commands here affect the whole device.
Running-config — The active configuration file currently operating in volatile RAM. Lost if the device loses power.
Startup-config — The configuration file saved in non-volatile NVRAM that loads automatically when the device boots up.
The commands from this module
Each of these appeared above. Run them here so they are in your fingers, not just your notes.
These commands are reference examples. Use the separate hands-on lessons to configure and verify the feature; reading this example does not execute or validate a device change.
enable
disable
configure terminal (or conf t)
exit
end (or Ctrl+Z)
hostname <name>
enable password <password>
enable secret <password>
service password-encryption
show running-config
show startup-config
write memory (or write / copy running-config startup-config)
do <command>Takeaways
- Connect to a device and move between user, privileged and configuration modes.
- Set a hostname and passwords.
- Tell the running configuration from the startup configuration, and save your changes.
Next: Ethernet Switching 1
More free lessons in 1. Network Fundamentals
- Network Fundamentals
- Network Devices
- Cables & Interfaces
- TCP/IP & OSI Models
- Switch Interfaces
- IPv4 Header
- Wireless RF & Frequencies
- IEEE 802.11 Standards & Wi-Fi Generations
- Ethernet Switching 1
- Ethernet Switching 2
- IPv4 Addressing
- IPv4 Configuration
- Subnetting Basics
- Finding Subnets Fast
- VLSM Subnetting
- IPv6 Addressing & Representation
- Network Diagnostics
- IPv6 Address Scopes & Types
- IPv6 Configuration & EUI-64