show running-config – Current Configuration Guide
Purpose of show running-config
Definition: show running-config (or show run) is a Cisco IOS command used to display the current active configuration in RAM on a router, switch, or firewall.
- Shows all settings currently in effect.
- Critical for troubleshooting, verification, documentation, and audits.
Difference: Running-Config vs. Startup-Config
| Aspect | Running-config | Startup-config |
|---|---|---|
| Location | RAM (volatile) | NVRAM (non-volatile) |
| Purpose | Live/active config (affects device instantly) | Backup loaded at next reload/reboot |
| Persistence | Lost after reload if not saved | Remains until overwritten |
| How to View | show running-config |
show startup-config |
Tip: Always save running-config to startup-config after making changes using:
copy running-config startup-config
Structure of Running Configuration
- Global Settings: Hostname, domain, logging, enable secret/passwords
- Interface Configurations: IP, VLAN, speed/duplex, shutdown/no shutdown
- Routing Protocols: OSPF, EIGRP, RIP, BGP, etc.
- Access Control Lists: Permit/deny rules (numbered/named)
- VLAN & Switching: VLAN definitions, spanning-tree, EtherChannel
Sample Output:
hostname HQ-Router
!
interface GigabitEthernet0/0
ip address 10.10.1.1 255.255.255.0
no shutdown
!
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
shutdown
!
router ospf 1
network 10.10.1.0 0.0.0.255 area 0
!
access-list 10 permit 192.168.1.0 0.0.0.255
!
line vty 0 4
password 7 070C285F4D06
login
Interpreting Key Sections
| Section | Purpose/Content | Example |
|---|---|---|
| Global | Hostname, domain, logging, SNMP, enable secret |
hostname BranchRouter ip domain-name example.com enable secret 5 $1$mERr$... |
| Interfaces | IP, VLAN, shutdown, speed/duplex, access-group |
interface Vlan10 ip address 10.1.10.1 255.255.255.0 no shutdown |
| Lines | Console, VTY access, passwords |
line vty 0 4 password cisco login |
| ACLs | Security rules (permit/deny) |
access-list 100 deny ip any 10.1.20.0 0.0.0.255 access-list 100 permit ip any any |
| Routing Protocols | OSPF, EIGRP, RIP, BGP |
router ospf 10 network 10.1.10.0 0.0.0.255 area 0 |
Navigating and Filtering Large Configurations
- Use SPACE for next page, ENTER for next line.
- Disable paging:
terminal length 0 - Search/filter with pipelines:
show run | include ospf(only lines containing 'ospf')show run | begin interface(start at matching line)show run | section interface GigabitEthernet0/1(show config section)
Saving, Exporting, and Backing Up Configurations
- Save to startup-config:
copy running-config startup-config - Export to TFTP/FTP/SCP:
copy running-config tftp:(for backups or sharing) - Schedule automated backups: Use
kronor network management tools (see below).
Kron Example – Daily TFTP Backup at 3:00 AM
kron policy-list backup-config cli copy running-config tftp: exit kron occurrence daily-backup at 3:00 recurring policy-list backup-config exit
Making and Managing Configuration Changes
- All changes in configuration mode (
conf t) apply instantly to running-config. - Changes are NOT persistent after reboot unless saved to startup-config.
- Common edits: IP address assignment, VLAN membership, password change, ACL modification.
Best Practice: After any major change, always save config and document who/what/when/why.
Security Considerations
- Sensitive data is visible: passwords (unless encrypted), SNMP communities, keys, etc.
- Use
enable secretfor strong encryption instead ofenable password. - Avoid hardcoding passwords—use AAA (RADIUS/TACACS+) when possible.
- Restrict access to configuration files and use secure protocols for export (SCP, SFTP).
Best Practices
- Always save changes (
copy running-config startup-config). - Automate regular backups to external servers.
- Document all configuration changes for audit and troubleshooting.
- Use filtering/searching to efficiently review large configs.
Example: Troubleshooting with show running-config
Scenario: John cannot access the server at 10.1.10.100 from his PC (different VLANs, routed by L3 switch).
-
Check interface configs:
show running-config | section interface
- Ensure correct IP/subnet, not shutdown, proper VLAN.
-
Example:
interface Vlan10 ip address 10.1.10.1 255.255.255.0 no shutdown ! interface Vlan20 ip address 10.1.20.1 255.255.255.0 shutdown
Analysis: Vlan20 is shutdown—devices in VLAN 20 cannot route traffic.
Action:no shutdownon Vlan20.
-
Check routing protocols:
show running-config | section router
- Verify all required networks are advertised.
-
Example:
router ospf 10 network 10.1.10.0 0.0.0.255 area 0
Analysis: VLAN 20 not included—addnetwork 10.1.20.0 0.0.0.255 area 0.
-
Check ACLs:
show running-config | include access-list
show running-config | section interface
- Are ACLs applied that block traffic?
-
Example:
interface Vlan10 ip access-group 100 in ! access-list 100 deny ip any 10.1.20.0 0.0.0.255 access-list 100 permit ip any any
Analysis: ACL 100 denies all to VLAN 20—remove/adjust as needed.
-
Save and document:
copy running-config startup-config
Exam Tips and Key Points
show running-configreveals all active settings—including unsaved changes.- Distinguish running-config (live/volatile) vs. startup-config (persistent).
- Use filtering (
| section,| include) for efficient troubleshooting. - Protect sensitive config data (passwords, SNMP, keys).
- Always save configs after changes and automate backups.
- Document all changes—essential for audits and troubleshooting.