The How Startup-Config Cisco command
Command: show startup-config
Usage: show startup-config
Function: Displays the contents of the startup configuration file.
Platform: All Cisco IOS devices
Mode: EXEC
Description:
The startup configuration file is a text file that contains the set of commands that are executed when the device is booted up. These commands configure the device's network settings, routing tables, access control lists, and other features.
The show startup-config command can be used to view the contents of the startup configuration file. This can be useful for troubleshooting problems with the device's configuration, or for simply查看the current configuration of the device.
Example:
To view the contents of the startup configuration file, enter the following command:
show startup-config
The output of the command will be a text file that contains all of the commands that would be executed if the device were to be booted up.
Additional Information:
- The show startup-config command can be used to view the contents of the startup configuration file even if the device is not currently able to boot up. This can be useful for troubleshooting problems with the device's configuration.
- The startup configuration file is typically located in the /flash directory on the device. The file name is startup-config.txt.
- The startup configuration file can be modified by using the copy running-config startup-config command. This command copies the current running configuration to the startup configuration file.
- The startup configuration file can also be modified by using a text editor. However, this is not recommended, as it can be easy to make mistakes when editing the file manually.
Related Commands:
- show running-config
- copy running-config startup-config
how startup-config Usage Examples
Examples:
- Display the running configuration that will be saved to the startup configuration:
how startup-config
- Display the running configuration that will be saved to the startup configuration, and include the disabled commands:
how startup-config all
- Display the running configuration that will be saved to the startup configuration, and include the commands that are currently disabled but were previously saved in the startup configuration:
how startup-config saved
- Display the differences between the running configuration and the startup configuration:
show startup-config differences
- Display the differences between the router’s Ethernet interfaces in the running configuration and the startup configuration:
show startup-config differences interface Ethernet1/0/1