🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › IT Support / Networking › Networking Fundamentals and Infrastructure › Lesson 6
TEC-ITS43-04 · Lesson 6 · 14 clock hours · lab

Cisco IOS CLI: Navigation and Basic Configuration

Objective. Students will use Cisco IOS command-line interface to navigate privilege modes, set hostnames and passwords, configure banner messages, save configurations, and verify device status using show commands.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Cisco IOS CLI: Navigation and Basic Configuration

What the IOS CLI Is

Cisco IOS (Internetwork Operating System) is the software that runs on most Cisco switches and routers. You control the device entirely through a text-based command-line interface (CLI). Unlike a graphical interface, the CLI requires exact commands typed at a prompt. This precision is what makes the CLI fast and scriptable — and also why accuracy matters from your first keystroke.

You reach the CLI by connecting a laptop or lab PC to the device's console port using a rollover (console) cable and a terminal emulator such as PuTTY or Tera Term. Set the serial connection to 9600 baud, 8 data bits, no parity, 1 stop bit, no flow control. This out-of-band connection works even when the device has no IP address yet.

The Three Core Privilege Modes

Cisco IOS uses a hierarchy of modes, each with its own prompt and set of allowed commands.

User EXEC Mode is the first mode you see after logging in. The prompt ends with a right angle bracket: `Switch>`. From here you can run a limited set of read-only commands such as `ping` and `show version`. You cannot change any configuration here.

Privileged EXEC Mode (also called "enable mode") gives you full read access and the ability to save or reload the device. Enter it by typing `enable` at the User EXEC prompt. The prompt changes to a pound sign: `Switch#`. You protect this mode with an enable secret password, which is stored in hashed (encrypted) form.

Global Configuration Mode is where you make configuration changes that affect the whole device. Enter it from Privileged EXEC by typing `configure terminal` (or `conf t`). The prompt becomes `Switch(config)#`. From Global Configuration Mode you can drop into sub-modes such as interface configuration (`Switch(config-if)#`) or line configuration (`Switch(config-line)#`).

To move back up one level, type `exit`. To jump all the way back to Privileged EXEC from any sub-mode, type `end` or press Ctrl+Z.

Setting a Hostname

The hostname is the device's identity in the CLI prompt and in log messages. A good hostname identifies the location and role of the device (for example, `SW-Lab1-A`). Configure it in Global Configuration Mode:

```

Switch(config)# hostname SW-Lab1-A

SW-Lab1-A(config)#

```

The prompt updates immediately. Hostnames must begin with a letter, contain only letters, digits, and hyphens, and be 63 characters or fewer.

Securing the Device with Passwords

Leaving a device unsecured means anyone with physical access can reconfigure it. At minimum you must set two passwords:

1. Enable secret — protects Privileged EXEC Mode. Always use `enable secret` rather than the older `enable password` because `enable secret` is stored as a salted MD5 hash, not plain text.

```

SW-Lab1-A(config)# enable secret Cisco1234!

```

2. Console line password — protects the console port itself. Enter line configuration mode for console line 0, enable login, and set the password:

```

SW-Lab1-A(config)# line console 0

SW-Lab1-A(config-line)# password Lab@Pass1

SW-Lab1-A(config-line)# login

SW-Lab1-A(config-line)# exit

```

The `login` command tells IOS to actually prompt for the password; without it, the password setting has no effect.

For additional protection, encrypt all plain-text passwords in the config file with:

```

SW-Lab1-A(config)# service password-encryption

```

Configuring a MOTD Banner

A Message of the Day (MOTD) banner appears on the screen before login. Legally, banners should warn unauthorized users that access is monitored and restricted — never use a welcoming message like "Welcome!" because courts have sometimes interpreted such messages as permission to enter. A proper banner reads more like: "Authorized users only. Unauthorized access is prohibited and monitored."

Configure a MOTD banner in Global Configuration Mode using a delimiter character (any character not in your message text) to mark the start and end of the message:

```

SW-Lab1-A(config)# banner motd #

Enter TEXT message. End with the character '#'.

Authorized users only. All activity is logged.

#

```

Saving the Configuration

Cisco devices store two configurations: the running-config in RAM (lost on power-off) and the startup-config in NVRAM (loaded at boot). After making changes, always save:

```

SW-Lab1-A# copy running-config startup-config

Destination filename [startup-config]? [Enter]

```

Alternatively, `write memory` (or `wr`) produces the same result on most IOS versions.

Verifying with Show Commands

The `show` family of commands is your primary troubleshooting and verification toolkit. Run them in User EXEC or Privileged EXEC Mode:

Get comfortable piping output: `show running-config | include hostname` filters for lines containing "hostname."

Safety and Workspace Practices

Cisco switches operate at standard AC voltages internally and should never be opened in this lab. Do not stack equipment unsafely on benches; dropped switches can injure feet and damage ports. Console and Ethernet cables are low-voltage signal cables posing no electrical shock hazard under normal conditions, but keep work areas clear of trip hazards from cable runs. Follow lab rules about food, drink, and electrostatic discharge (ESD) — ground yourself before handling expansion modules or memory. Back up any pre-existing device configuration before overwriting it; in a production environment, unauthorized changes to switch or router configs can take down live services.

Key terms10

User EXEC ModeThe first, most restricted CLI mode on a Cisco device, indicated by a '>' prompt; allows limited read-only commands such as ping and show version.
Privileged EXEC ModeThe elevated CLI mode indicated by a '#' prompt, entered with the 'enable' command; allows full read access, configuration management, and saving or reloading the device.
Global Configuration ModeThe CLI mode entered with 'configure terminal' from Privileged EXEC; changes made here affect the entire device and are reflected immediately in the running-config.
Running-configThe active configuration currently operating in the device's RAM; changes take effect immediately but are lost if the device loses power before they are saved.
Startup-configThe configuration stored in NVRAM that is loaded each time the device boots; updated by copying the running-config to it.
Enable secretA Cisco IOS password that protects entry into Privileged EXEC Mode; stored as a salted MD5 hash rather than plain text, making it more secure than the older 'enable password' command.
MOTD BannerA Message of the Day banner displayed to all users before login; should contain a legal warning that access is restricted and monitored rather than a welcoming message.
Console PortA dedicated out-of-band management port on Cisco devices used with a rollover cable and terminal emulator to access the CLI even when no network connectivity exists.
service password-encryptionA Global Configuration Mode command that applies a basic cipher to plain-text passwords stored in the running-config, preventing casual viewing; not a substitute for strong passwords.
show mac address-tableA Privileged EXEC show command used on Cisco switches to display the MAC address table, listing which MAC addresses have been learned on each port.
In class: Step-by-step CLI navigation practice on a Cisco switch or router: students progress through User EXEC, Privileged EXEC, and Global Configuration modes, enter a hostname, set enable secret and console passwords, and configure a MOTD banner following a printed command reference card · Show command scavenger hunt: a list of 10 device facts (IOS version, interfaces present, MAC table size, running config) is distributed; students must find each fact using only show commands and record the exact command used · Configuration verification and save: students run 'show running-config', identify any missing items from a checklist, correct them, and use 'copy running-config startup-config'; instructor verifies saved config after a simulated reload
Materials: Cisco 2960 switches and/or ISR routers (one per two students), console cables, PuTTY or Tera Term on lab PCs, Cisco IOS CLI command reference card, Cisco CCST/CCNA Official Cert Guide
Check: Instructor checks final running-config against a 12-item rubric (hostname correct, passwords set, banner present, config saved, etc.); student must meet 10 of 12 items; any security-related item (password) missed requires immediate correction before the lesson is marked complete

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA A+ / CompTIA Network+ — Network Devices and CLI
1. A technician types 'enable' at the 'Switch>' prompt and presses Enter. What does the prompt change to, and what does this indicate?
Cisco CCST / CCNA — Device Security and Configuration
2. Which command should a technician use to set a privileged-mode password that is stored in hashed form in the running-config?
Cisco CCST / CCNA — IOS Configuration Management
3. A technician makes several configuration changes and then powers off the switch without saving. What happens to those changes?
Cisco CCNA — Device Hardening
4. Which sequence of commands correctly configures a console login password on a Cisco switch?
CompTIA Network+ / Cisco CCNA — Network Troubleshooting
5. A student wants to display a quick summary of all interface IP addresses and their up/down status. Which command is most efficient?
Cisco CCNA / CompTIA Network+ — Security Policy
6. Which statement about a Cisco MOTD banner is most accurate from a legal and security standpoint?
Cisco CCST / CCNA — IOS CLI Navigation
7. A student is in Global Configuration Mode and wants to return directly to Privileged EXEC Mode without stepping through intermediate sub-modes. Which action accomplishes this?
Cisco CCNA / CompTIA Network+ — Device Security
8. After completing a switch configuration, a student runs 'show running-config' and notices that all passwords appear in plain text. Which command would prevent passwords from displaying in plain text in the config output?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.