The Cisco IOS command-line interface looks austere: a prompt, a blinking cursor, and no menus to hide behind. That austerity is its strength. An administrator who understands a small core of IOS commands can inspect any router or switch, change its configuration deliberately, verify the change, and save it so it survives a reboot. This article teaches that core from Cisco's own documentation — the Cisco IOS Configuration Fundamentals Command Reference and Cisco's configuration guides — for legitimate administration of networks you own or are authorised to manage. There are no shortcuts around access control here: every move below assumes you have already been given authorised access to the device.
First, know which mode you are in
IOS is hierarchical, and the prompt tells you where you stand. User EXEC mode, shown as a prompt ending in >, allows limited inspection. Privileged EXEC mode, ending in #, is where most inspection and all configuration entry happen; you reach it with enable. Global configuration mode, shown as (config)#, is where changes are made; you reach it from privileged EXEC with configure terminal. From there, interface followed by a type and number — for example, interface gigabitethernet 0/0 — drops you into interface configuration mode, (config-if)#, where settings for that one port are made.
Mode discipline prevents most beginner mistakes. Show commands belong in EXEC mode. Configuration commands belong in configuration mode. If a command is rejected, the first question is not whether the command is wrong, but whether you are standing in the wrong mode.
Inspect before you touch: the show family
Cisco's guidance is consistent: understand the current state before changing it. The show family is how you do that.
show running-config displays the current, active configuration in RAM — the configuration the device is actually running right now. show startup-config displays the saved configuration that will be loaded at the next startup. Comparing the two answers a critical question: does what is running match what will survive a reboot?
show ip interface brief gives the one-screen health check administrators reach for first: every interface, its IP address, whether the address was set as expected, and two status columns — the interface's physical status and its line protocol status. An interface that is up and up is passing traffic at both layers; administratively down means it has been deliberately shut down; down in the second column points at a line or protocol problem, not a configuration shutdown.
show version identifies the device itself: the IOS or IOS XE software version, how long it has been up, why it last restarted, and hardware details. Before following any guide, show version tells you whether that guide's commands even apply to the software in front of you.
Make a change: configure, interface, no, and shutdown
To change the running configuration, enter configure terminal from privileged EXEC. Cisco's configuration-files documentation is explicit about what happens next: commands entered in configuration modes are executed immediately and take effect in the running configuration, either as you enter them or when you exit that configuration mode.
Inside interface configuration mode, the everyday moves are assigning an address with ip address, adding a description so the next administrator knows what the port is for, and controlling the port's state. shutdown administratively disables an interface. Its opposite is the most characteristic IOS move of all: no shutdown brings it back. The no prefix is a general IOS principle — prefixing a configuration command with no negates it or restores its default. Learning to read no as "undo this line" unlocks a large part of the command language at once.
Work on one interface, exit back, and verify before moving on. That rhythm — change, verify, then continue — is what separates administration from gambling.
Verify without leaving configuration mode: do
Verification used to mean dropping out of configuration mode, running a show command, and climbing back in. The do command removes that friction: from a configuration mode, prefixing an EXEC command with do executes it in place — for example, do show ip interface brief from (config-if)# lets you confirm an interface came up without losing your place.
Used well, do turns configuration into a tight loop: make one change, do show to check it, adjust, and check again. Used carelessly, it can hide which mode you are in, so keep reading the prompt.
Control the screen: terminal length
Long show output pages one screen at a time, which is right for reading and wrong for capturing a full configuration. terminal length 0 disables paging for your session, so output flows without the –More– prompt; setting a normal length such as terminal length 24 restores paging. It changes only your session's display, not the device's configuration — a small command that saves real time when you are saving evidence of a device's state for a change record.
Leave cleanly: exit and end
exit steps back exactly one level — from interface configuration to global configuration, from global configuration to privileged EXEC, and from EXEC to logging out. end, or Ctrl-Z, jumps straight from any configuration mode back to privileged EXEC. Knowing the difference matters in a shared operations environment: end is the deliberate "I am finished configuring" signal, after which you verify from privileged EXEC with the show family.
Make it survive a reboot: copy running-config startup-config
This is the move that decides whether your work lasts. Cisco's documentation draws the distinction plainly: the running configuration is the current configuration in memory, while the startup configuration is used during system startup. If you change the running configuration with configure terminal but do not save it, the change disappears at the next reload.
copy running-config startup-config, from privileged EXEC, saves the running configuration as the startup configuration. The disciplined sequence is always the same: change, verify with show, then copy — never copy first and verify later, because copying an unverified configuration makes a mistake permanent. And the reverse is a legitimate test technique Cisco itself describes: change the running configuration for a short period without saving it, knowing a reload will return the device to the saved state.
The dangerous drawer: erase and reload
Two privileged EXEC commands deserve explicit respect. erase startup-config deletes the saved configuration, so the device starts with no startup configuration at the next reload. reload restarts the device — and, if you have not saved, discards every unsaved change. Neither is a routine troubleshooting step. Both belong in decommissioning, lab resets, and planned recovery, performed only by an authorised administrator who has a copy of the configuration stored safely elsewhere and a maintenance window in which the network can be down.
Treat any guide that reaches for erase or reload casually as a guide to stop following. On a production network, those commands are planned events, not experiments.
A complete, ordinary workflow
Put the moves together in the order a working administrator uses them. Connect with authorised access and enter privileged EXEC with enable. Inspect: show version, show running-config, and show ip interface brief. Enter configure terminal, select the interface, make one change — an address, a description, or no shutdown — then check it in place with do show ip interface brief. Leave configuration with end, verify again from privileged EXEC, and only then run copy running-config startup-config. Finally, show startup-config to confirm the saved configuration is the one you intended to save.
Nothing in that workflow is exotic. That is the point. The commands that actually run the network are not hidden tricks; they are a small, documented core, used in the right mode, in the right order, with verification at every step.
The bottom line
Master the modes, inspect with show running-config, show ip interface brief, and show version, change deliberately with configure terminal, interface, shutdown, and no, verify in place with do, manage your session with terminal length, leave cleanly with exit and end, and save only verified work with copy running-config startup-config. Keep erase and reload in the dangerous drawer, for planned work only. That core — straight from Cisco's own command reference — will carry you through most of the real administration a Cisco network ever asks for.
By Karl Amber
Sources
- Cisco IOS Configuration Fundamentals Command Reference — the reference for configure, show, copy, erase, reload, terminal length, exit, end, and related fundamentals commands and their modes.
- Cisco — Managing Configuration Files (Cisco IOS / IOS XE Configuration Fundamentals guidance): running-config as the current configuration, startup-config as the configuration used at system startup; changing the running configuration with configure terminal without saving it with copy running-config startup-config; configuration commands taking effect in the running configuration.
- Cisco IOS XE System Management Configuration Guide — Managing Configuration Files: types of configuration files, entering configuration mode with configure, and saving the running configuration to the startup configuration.
- Cisco IOS command-mode documentation: user EXEC, privileged EXEC (enable), global configuration (configure terminal), and interface configuration (interface type number) modes and their prompts; do to execute EXEC commands from configuration mode; no to negate a command; shutdown / no shutdown for interface state; show ip interface brief and show version for interface and device status.
Editor's note: this article is part of ScanderLoud's Cybersecurity & Networking series. It was researched from primary documents — the Cisco IOS Configuration Fundamentals Command Reference and Cisco IOS / IOS XE configuration guides — our coverage is original and educational throughout, for legitimate administration of networks you own or are authorised to manage. No NetworkChuck video was opened or used.
Leave a Reply