rw 1970-01-01 19:54:01 1237 backup
2 files, 1885 bytes total.
! Use the current running-config for next boot:
SWI2210-XXXX# copy running-config startup-config
Building configuration...
% Saving 1271 bytes to flash:startup-config
Reverting to the Default Configuration
An explicit ‘copy running-config startup-config’ is necessary to make the change persistent.
Rebooting and resetting configuration to defaults is accomplished with the ‘reload’ command:
reload cold [ sid <switch_id> ]
reload defaults [ keep-ip ]
The first form reboots the system. The second form loads configuration defaults. If the ‘keep-ip’ keyword
is specified, the system attempts to keep the most relevant parts of the VLAN 1 IP setup--the IP address
setup and the active default route--in order to maintain management connectivity.
Note: There is no guarantee that the above is sufficient. It depends on the actual network
properties and the system’s total IP configuration. In some cases it may be preferable to explicitly
un-configure the system using ‘no’ commands, or prepare a suitable configuration and download
it to the system’s ‘startup-config’ and reboot.
Example: Using Reload Commands
! Reload defaults, but try to keep VLAN 1 configuration. First list current IP
! settings:
SWI2210-XXXX# show ip interface brief
Vlan Address Method Status
---- -------------------- -------- ------
1 172.16.1.17/24 DHCP UP
SWI2210-XXXX# reload defaults keep-ip
% Reloading defaults, attempting to keep VLAN 1 IP address. Please stand by.
# show ip interface brief
Vlan Address Method Status
---- -------------------- -------- ------
1 172.16.1.17/24 DHCP UP
! Contents of flash: are unchanged:
SWI2210-XXXX# dir
Directory of flash:
r- 1970-01-01 00:00:00 648 default-config
rw 1970-01-06 05:33:18 1237 startup-config
rw 1970-01-01 19:54:01 1237 backup
3 files, 3122 bytes total.
! Reload again, but don’t try to keep VLAN 1 settings:
# reload defaults
% Reloading defaults. Please stand by.
! Verify that the default IP settings have been restored:
# show ip interface brief
Vlan Address Method Status
---- -------------------- -------- ------
1 192.0.2.1/24 Manual UP
! Reboot the system
# reload cold
% Cold reload in progress, please stand by.
! ... bootup output omitted ...
LOADING A NEW FIRMWARE IMAGE
The system can store up to two software images in flash. The image selected for bootup is termed the
active image, while the other is termed the alternate image.