Use it when saving, comparing or restoring device configuration, or when changes are lost after a reload.
Configuration · IOS / IOS XE Fundamentals
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.
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.
configure terminal → change → verify → save → archive
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
copy running-config startup-configPrimary Commands
Configuration and operational commands for this Topic.
copy running-config startup-configReferenceSave the running configuration so it survives a reload.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixederase startup-configReferenceDelete the saved startup configuration; the device boots unconfigured after reload.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedreloadReferenceRestart the device; unsaved configuration changes are lost.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show running-configShowDisplay the running configuration.
Use when: Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.
Quick note: Restores exact/ ownership only; this authored guidance is not observed production Evidence.
Cisco IOS / IOS XE · configuration · verifiesshow startup-configShowDisplay the saved startup configuration.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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.
- 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.
show running-config | section <keyword>— one sectionshow archive config differences— running vs startupcopy 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
| File | Location | Role |
|---|---|---|
| running-config | Memory | Active configuration |
| startup-config | NVRAM | Loaded at boot |
| Archive copies | Flash or remote server | History 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
| Feature | Use |
|---|---|
reload in 10 | Device reloads to the saved configuration if you lose access; cancel with reload cancel |
archive and configure replace | Roll back to a saved configuration without a reboot |
configure confirm / configure terminal revert timer | Automatic revert unless confirmed (platform-dependent) |
show archive config differences | Compare 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
| Practice | Reason |
|---|---|
| Descriptions on interfaces | Faster troubleshooting |
| Change in a planned order | Avoid cutting off your own management path |
| Save only after verifying | Startup-config stays a known-good fallback |
| Back up configurations off the device | Recovery after hardware failure |
Documented example, not captured output.
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.
| Command | Effect |
|---|---|
copy running-config startup-config / write memory | Save |
show running-config | Current configuration |
show startup-config | Saved configuration |
archive + configure replace | Rollback to a saved version |
configure terminal revert timer 10 | Auto-revert unless confirmed |
Use show archive config differences to see what changed before saving.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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%Quick lookup tables
Configuration · operational reference
Compact state/design/evidence reference for fast lookup.
| Object | Meaning | Verification |
|---|---|---|
| Running config | Active configuration | show running-config |
| Startup config | Reload baseline | show startup-config |
| Save/copy | Persistence action | Compare before/after |
| Boot variables | Image/config source context | show boot / platform view |