The How Running-Config Cisco command

Command: show running-config

Function: Displays the running configuration of a Cisco device.


show running-config [detail] [security-level [disable | level {0 | 1 | 2}]]


Supported Devices: All Cisco devices that run the Cisco IOS operating system, including routers, switches, and firewalls.

Additional Information:

how running-config Usage Examples

The 'show running-config' command in Cisco is used to display the currently active running configuration of a device. Here are some examples of how you can use this command:

  1. Display the Full Running Configuration:

    show running-config

    This command shows the entire running configuration of the device, including all active commands, settings, and interfaces.

  2. Display Specific Configuration Sections:

    show running-config section <section-name>

    Replace <section-name> with the name of the configuration section you want to view. For example, to see the VLAN configuration, you would use:

    show running-config section vlan
  3. Display Configuration for a Specific Interface:

    show running-config interface <interface-name>

    Replace <interface-name> with the name of the interface whose configuration you want to view. This shows the configuration specifically applied to that interface.

  4. Display Configuration Changes Since Last Commit:

    show running-config changes

    This command displays the changes made to the running configuration since the last time it was saved or committed. This is useful for reviewing changes before committing them to the startup configuration.

  5. Search for Specific Configuration Elements:

    show running-config | include <search-string>

    Replace <search-string> with the text you want to search for in the running configuration. This command allows you to quickly find specific configuration elements within the entire running config.

  6. Display Running Configuration with Context:

    show running-config context <context-name>

    Replace <context-name> with the name of the configuration context you want to view. This command is useful in environments where multiple configuration contexts are used.

  7. Compare Running Configuration with Startup Configuration:

    show running-config diff startup-config

    This command displays the differences between the running configuration and the startup configuration. This allows you to identify changes made to the running configuration that have not yet been saved to the startup configuration.

  8. Display Only Specific Changes:

    show running-config diff startup-config | include <search-string>

    Combine the diff command with the include command to filter the output and only show changes that contain the specified search string.