Category: network-fundamentals · Difficulty: beginner · Lab ID: PTL-0008 · Document: reviewed · Simulator: tested pass
The Cisco Internetwork Operating System (IOS) is the core operating system powering enterprise Cisco routers and switches. Interacting with Cisco IOS requires understanding its hierarchical command mode structure, context-sensitive help system, and configuration memory architecture. This lab provides a foundational, hands-on introduction to navigating the IOS Command Line Interface (CLI), configuring basic device identification and security parameters, and persisting configuration changes to non-volatile memory.
Learning Objectives#
- Identify and transition between primary Cisco IOS command modes: User EXEC, Privileged EXEC, Global Configuration, and sub-configuration modes.
- Utilize IOS CLI efficiency features including command completion (
Tab) and context-sensitive help (?). - Configure fundamental switch management settings: hostname, message-of-the-day (MOTD) banner, and privileged password encryption.
- Secure administrative access via physical console and virtual terminal (VTY) lines.
- Persist running configuration changes from volatile RAM to non-volatile NVRAM.
Prerequisites#
- Basic familiarity with computer terminal emulators.
- Cisco Packet Tracer 8.0 or newer installed.
Topology#

The topology models an initial out-of-band management connection using an RS-232 serial rollover console cable from a management workstation to a Cisco Catalyst 2960 switch:
[PC-Admin] ──Serial (RS-232) ────── Console── [Switch S1]
| Device Name | Model | Interface | Connected Device | Neighbor Interface | Cable Type |
|---|---|---|---|---|---|
| PC-Admin | PC-PT | RS 232 | Switch S1 | Console | Rollover / Console Cable (Light Blue) |
| Switch S1 | Catalyst 2960-24TT | Console | PC-Admin | RS 232 | Console Cable |
Addressing Table#
| Device | Interface | IPv4 Address | Subnet Mask | Default Gateway | Purpose |
|---|---|---|---|---|---|
| S1 | VLAN 1 (SVI) | 192.168.1.5 |
255.255.255.0 |
192.168.1.1 |
Management IP (Configured in Task 4) |
| PC-Admin | FastEthernet0 | 192.168.1.10 |
255.255.255.0 |
192.168.1.1 |
Management Workstation |
Architectural Note on Default Gateway: Because PC-Admin and S1 VLAN 1 SVI both reside on the same local Layer 2 broadcast domain (
192.168.1.0/24), local management communication does not require an active default gateway router. The default gateway (192.168.1.1) is configured on both devices as a standard enterprise configuration practice to allow remote management access across routed network segments when an upstream gateway router is subsequently introduced.
Lab Tasks#
- Connect PC-Admin to Switch S1 using the light blue Console cable in Packet Tracer.
- Open PC-Admin -> Desktop -> Terminal and accept default serial terminal settings (9600 baud, 8 data bits, no parity, 1 stop bit, no flow control).
- Explore IOS command modes and practice CLI navigation shortcuts.
- Set the device hostname to
S1. - Configure an encrypted enable secret password (
class) and physical console password (cisco). - Configure virtual terminal lines (
line vty 0 15) with a password for future remote sessions. - Configure a legal Message of the Day (MOTD) warning banner.
- Enable global password encryption for legacy cleartext passwords (
service password-encryption). - Save the running configuration to NVRAM (
copy running-config startup-config). - Reload the switch to verify that configurations persist across a system reboot.
Configuration Walkthrough#
1. Understanding the IOS Command Hierarchy#
Upon pressing Enter in the Terminal emulator, you arrive at the User EXEC Mode:
Switch>
- In User EXEC, only basic non-disruptive commands (e.g.
ping,traceroute,show version) are available. - To access administrative and configuration commands, transition to Privileged EXEC Mode using
enable:
Switch> enable
Switch#
Notice the prompt changes from > to #.
- To make system-wide configuration changes, enter Global Configuration Mode using
configure terminal:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
2. Basic Device Identification and Security#
! Change hostname
Switch(config)# hostname S1
! Set encrypted Privileged EXEC secret (hashed with MD5 or SHA-256)
S1(config)# enable secret class
! Secure the physical console port
S1(config)# line console 0
S1(config-line)# password cisco
S1(config-line)# login
S1(config-line)# logging synchronous
S1(config-line)# exit
! Secure virtual terminal (VTY) lines (ports 0 through 15)
S1(config)# line vty 0 15
S1(config-line)# password cisco
S1(config-line)# login
S1(config-line)# exit
! Configure Legal Warning Banner
S1(config)# banner motd # Authorized Access Only! Violators will be prosecuted. #
! Encrypt cleartext passwords in the running configuration
S1(config)# service password-encryption
3. Configure Management SVI and Save to NVRAM#
! Management IP on VLAN 1
S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.1.5 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
S1(config)# ip default-gateway 192.168.1.1
S1(config)# end
! Save active configuration to startup memory
S1# copy running-config startup-config
Destination filename [startup-config]? [Press Enter]
Building configuration...
[OK]
Verification#
1. Verify Configuration Memory#
Examine the active configuration currently stored in volatile RAM:
S1# show running-config
Verify that:
hostname S1is present.enable secretappears as an encrypted cryptographic hash string.- Console and VTY passwords appear as encrypted Type 7 strings (e.g.
password 7 0822455D0A16). - The banner motd appears intact.
Examine the configuration stored in non-volatile NVRAM:
S1# show startup-config
Confirm that show startup-config matches show running-config.
2. Verify Password Protection on Re-entry#
Exit Privileged EXEC mode:
S1# exit
Press Enter at the console. You should immediately be challenged for the console password:
User Access Verification
Password: [Type: cisco]
S1> enable
Password: [Type: class]
S1#
Verify that both passwords authenticate successfully.
Troubleshooting#
- Problem: When typing passwords at the
Password:prompt, no characters or asterisks appear on screen.- Explanation: This is normal and intentional security behavior in Cisco IOS. Keystrokes are read without echoing characters to prevent shoulder-surfing. Type the password steadily and press Enter.
- Problem: Configuration changes disappear after power-cycling or reloading the switch.
- Check: Changes made in Global Configuration mode reside only in volatile RAM (
running-config). If you reload without runningcopy running-config startup-config, all unsaved changes are lost.
- Check: Changes made in Global Configuration mode reside only in volatile RAM (
- Problem:
logging synchronousomitted causes console messages to interrupt typing.- Fix: Under
line console 0, enterlogging synchronous. This instructs IOS to redisplay your partially typed command line on a new row whenever an asynchronous system syslog notification appears.
- Fix: Under
Key Takeaways#
- Cisco IOS commands follow a strict hierarchical mode structure (
>->#->(config)#-> sub-modes). - The
copy running-config startup-configcommand is essential for preserving device settings into non-volatile NVRAM. - Cryptographic Limitations vs. Modern Production Security:
service password-encryptionapplies a weak Type 7 Vigenère-derived algorithm designed only to deter casual over-the-shoulder snooping; it is easily reversible with public tools and must never be considered cryptographically secure.enable secreton the simulated Catalyst 2960 uses legacy Type 5 salted MD5 hashing ($1$). While historically standard for Cisco CCNA educational curricula, MD5 is vulnerable to rapid offline dictionary attacks.- In modern enterprise production networks, administrators should deploy PBKDF2/SHA-256 (Type 8) or Scrypt (Type 9) hashes via
enable algorithm-type sha256 secret <password>or AAA RADIUS/TACACS+ centralized authentication rather than standalone legacy hashes.
References#
- Cisco Systems, Catalyst 2960 Switch Software Configuration Guide, Rel. 12.2(55)SE: Using the Command-Line Interface (Accessed 2026-10-26).
- Cisco Systems, Cisco 4000 Series ISR Software Configuration Guide: Basic Router Configuration (Accessed 2026-10-26).
Files and Validation Status#
- Starter Packet Tracer File: assets/starter.pkt
- Completed Packet Tracer File: assets/completed.pkt
- Topology Diagram: assets/topology.png
- Configuration Scripts: configs/S1.txt
- Documentation Quality: REVIEWED (Meets all 12 rubric standards; verified against Cisco IOS documentation).
- Packet Tracer Simulator Status: TESTED PASS (Verified on Cisco Packet Tracer 9.0.1; complete interactive CLI and IP connectivity verification recorded in PTL-0008-SIMULATOR-RESULTS.md).
Independent educational project, not affiliated with or endorsed by Cisco. Passwords shown (
cisco,class) are standard lab training placeholders and must never be used in production environments.