show startup-config
Shows the configuration saved in NVRAM, which is what the device loads the next time it boots.
Written by a working field network engineer · CCNA, Security+, CySA+
The configuration saved in NVRAM, which the device loads when it boots. Comparing it with the running-config shows what would be lost in a power cut. In this example the newest static route on R2 has not been saved yet.
Example output
R2#show startup-config
Using 1229 out of 262144 bytes
!
version 15.7
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
interface GigabitEthernet0/0
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 10.0.12.2 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
router-id 2.2.2.2
network 10.0.12.0 0.0.0.3 area 0
network 192.168.20.0 0.0.0.255 area 0
!
line con 0
line vty 0 4
login
!
endReference output: hand-written in standard Cisco IOS format for this example network, not captured from a device. Shortened in the same way as the running-config page.
Useful variants
show configurationcopy running-config startup-configwrite memory
What each column or field means
| Field | Meaning |
|---|---|
Using N out of M bytes | Size of the saved configuration and NVRAM capacity. |
Configuration body | The same syntax as the running-config, as it was when last saved. |
When it doesn’t look right
“startup-config is not present”.
Nothing has ever been saved; the device will boot to the initial setup dialog. Save with copy running-config startup-config.
The device boots with an old configuration.
The configuration register may be set to ignore NVRAM (0x2142, used for password recovery). Check show version and set it back to 0x2102.
Related commands
Try it yourself
- Switch Management VLAN (free)
Learn it in the CCNA path
- Cisco CLI Commands Sheet (2. Network Access)
Topic
Device Management — Read the configuration and software version, save changes, discover neighbors with CDP and LLDP, and check logging and time.