Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Configuration · IOS / IOS XE Fundamentals

Direct answer

IOS/IOS XE keeps the active configuration in running-config (RAM) and the boot configuration in startup-config (NVRAM); changes take effect immediately but survive a reload only after copy running-config startup-config.

When to use this

Use it when saving, comparing or restoring device configuration, or when changes are lost after a reload.

First 30 seconds

1. Changes apply immediately to the running config.

2. Save to survive reloads.

3. Use configure replace or archive for rollback.

4. Check differences before saving.

5. Use reload in N as a safety net on remote changes.

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandcopy running-config startup-config
Scope / prerequisiteUse it when saving, comparing or restoring device configuration, or when changes are lost after a reload.
Show · 2Reference · 3
What next?3 suggested next steps
Catalog command links5
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Known-good, broken and proof-boundary verification Verify boundary

Known-good configuration means the intended line is present in running-config, the responsible feature reports the expected effective state, and the original workload succeeds through the same scope. Broken state includes parser rejection, accepted-but-inactive configuration, hardware/programming mismatch or unsaved persistence. Read back the exact object after the change and compare an operational counter or state value. A clean running-config does not show forwarding, policy outcome or persistence; that limit of what it shows requires feature-state evidence plus the original workload and, when relevant, startup-config read-back.

Step 2 Native known-good discriminator and proof boundary — Configuration Verify boundary

Healthy IOS XE Configuration persistence requires intended commands to be present in running-config, the saved startup-config to match the intended persistent revision after copy running-config startup-config, and the same service behavior to survive the expected reload boundary. Suspicious evidence is a running/startup delta, a save error, an unexpected generated/default line, or a post-reload state that differs from the pre-reload read-back. show running-config and show startup-config show only their respective configuration stores at that moment; copy/erase/reload outcomes do not show the application flow is healthy. Close by comparing the relevant sections before/after persistence and repeating the original operational test once the device has converged.

Step 3 Verification and output interpretation Verify boundary

Compare show running-config and show startup-config, confirm the intended delta, save only when persistence is intended, and re-check the exact feature state rather than treating a successful command entry as evidence. Prefer read-only canonical commands first and preserve exact software release, hardware identity and configuration scope in copied evidence. Compare active state with intended state and, where persistence matters, compare running and startup sources. For a claim about forwarding or protocol behavior, follow the configuration evidence with the corresponding operational table rather than stopping at configuration text.

Step 4 Failure isolation: observation → implication → next check Narrow the fault

If a configuration command is rejected, inspect parser context, platform/feature support and privilege before changing syntax. If the line appears in running-config but operational state stays down, inspect the responsible feature with a show command and its prerequisites rather than repeatedly re-entering the line. If operational state is correct but traffic still fails, move to forwarding, policy and return-path evidence. If a reload loses the change, compare startup-config and save history. Each branch must preserve the same interface, VRF or protocol instance.

Command lookup Jump straight to Cisco syntax
Key points
  • User EXEC, privileged EXEC, global and subconfiguration modes have different scope
  • Running-config is active state; startup-config is boot input
  • IOS XE separates a Linux-based platform and modular processes from the IOS CLI experience
  • Syntax and feature support remain model, license and release specific.
Key checks
  • show running-config | section <keyword> — one section
  • show archive config differences — running vs startup
  • copy running-config startup-config — save
ReferenceWhy it matters1 section · depth on demand

When to use it

Use it to navigate safely, distinguish configuration from observation, and capture the exact platform and release before applying syntax.

ReferenceHow it works1 section · depth on demand

Mechanics, state owner and dependency boundary

IOS/IOS XE configuration has distinct desired, candidate-like command-entry and effective runtime state. The running configuration is the device-owned configuration state used by features, while startup configuration is only the next-boot persistence source. Interface, routing and service processes consume that configuration independently, so a line present in running-config does not show the relevant subsystem accepted it or that packets follow the intended path. Treat parser acceptance, feature state, hardware programming and persistence as separate boundaries.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Configuration in IOS XE

Configuration commands are entered in configuration modes and take effect immediately. Cisco's IOS XE CLI fundamentals guide explains the consequence: changes update the running configuration at once and are lost on reboot unless saved with copy running-config startup-config; most commands have a no form to remove them and a default form to restore the default.

Configuration files

FileLocationRole
running-configMemoryActive configuration
startup-configNVRAMLoaded at boot
Archive copiesFlash or remote serverHistory and rollback
R1# configure terminal
R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# description to-SW1
R1(config-if)# ip address 10.0.12.1 255.255.255.252
R1(config-if)# no shutdown
R1(config-if)# end
R1# show running-config interface GigabitEthernet0/0/1
interface GigabitEthernet0/0/1
 description to-SW1
 ip address 10.0.12.1 255.255.255.252
 negotiation auto
R1# copy running-config startup-config
R1(config)# default interface GigabitEthernet0/0/2
R1(config)# no ip domain lookup

Safer changes

FeatureUse
reload in 10Device reloads to the saved configuration if you lose access; cancel with reload cancel
archive and configure replaceRoll back to a saved configuration without a reboot
configure confirm / configure terminal revert timerAutomatic revert unless confirmed (platform-dependent)
show archive config differencesCompare running and saved configurations
R1(config)# archive
R1(config-archive)# path flash:archive/r1-
R1(config-archive)# write-memory
R1# configure replace flash:archive/r1--3 list
R1# show archive config differences nvram:startup-config system:running-config

Good practice

PracticeReason
Descriptions on interfacesFaster troubleshooting
Change in a planned orderAvoid cutting off your own management path
Save only after verifyingStartup-config stays a known-good fallback
Back up configurations off the deviceRecovery after hardware failure

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

IOS / IOS XE configuration changes take effect immediately in the running configuration and are lost at reload unless saved to the startup configuration. Configuration archives and configure replace add rollback.

CommandEffect
copy running-config startup-config / write memorySave
show running-configCurrent configuration
show startup-configSaved configuration
archive + configure replaceRollback to a saved version
configure terminal revert timer 10Auto-revert unless confirmed

Use show archive config differences to see what changed before saving.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Architecture/protocol mechanics and state model

IOS/IOS XE normally applies CLI changes to the running configuration immediately; persistence across reload is a separate action involving the startup configuration or configured boot source. Cisco IOS/IOS XE reference work should keep parser context, active running state, persistent startup state and device runtime state as separate concepts. Commands can be syntactically valid in one mode and invalid or semantically different in another. A useful reference records the exact prompt/mode and distinguishes observation commands from state-changing commands, because the CLI itself is an interface to multiple subsystems rather than a single flat shell.

Limits and common misconceptions

A command accepted by the parser does not show the intended runtime behavior; a saved startup configuration does not show the current running state; and unsaved changes can be valid temporary changes. CLI state, stored configuration, software image, hardware inventory and service health are different evidence layers. The site should make those boundaries explicit and leave live fault synthesis to ChatGPT. Exact output fields and some defaults vary by platform/release, so generic Cisco references should retain version context whenever a feature claim depends on it.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Design change procedures around explicit before/after capture, bounded command scope, save intent and rollback. Separate running-config state from startup-config and from boot variables/images. Configuration intent should be reviewable before and after change. Capture the relevant current state, make the smallest scoped change, verify the resulting runtime behavior and decide explicitly whether persistence across reload is intended. Avoid equating command acceptance with technical success, and avoid saving unrelated changes simply because the device has unsaved configuration.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in IOS / IOS XE Fundamentals → Configuration. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE 17.x

Official Cisco running/startup configuration-file reference reviewed for. Verification covers the reference concepts represented by this Topic; deployment-specific runtime behavior still requires local evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/syst-mgmt/b-system-management/m_cm-config-files-0.html · confidence 95%
Embedded reference data

Quick lookup tables

Configuration · operational reference

Compact state/design/evidence reference for fast lookup.

ObjectMeaningVerification
Running configActive configurationshow running-config
Startup configReload baselineshow startup-config
Save/copyPersistence actionCompare before/after
Boot variablesImage/config source contextshow boot / platform view
Confirmation

Confirm action

Continue?