Knowledge Centre
Networking GuidesTechnical Cheat Sheet

Cisco IOS Essential Commands Cheat Sheet

10 minutes to completeEvergreen guide — kept up to date

A compact command reference for experienced administrators covering inspection, interface and VLAN configuration, routing, SSH, ACLs, logging, saving configuration and troubleshooting — with risk levels and verification commands throughout.

This cheat sheet lists the most commonly needed Cisco IOS and IOS XE commands, organised by task. Every command shows its required mode, risk level and a verification command. Exact syntax, available options and command behaviour vary by device model and software release — verify support before applying any configuration to a production device.

Configuration changes can interrupt connectivity, lock out administrators or expose the network if applied incorrectly. Back up the configuration and confirm console access before changing a production device.

Command Modes

ModePromptHow to enterPurpose
User EXEChostname>Default on loginLimited inspection
Privileged EXEChostname#enableFull inspection, diagnostics, entry to config
Global Configurationhostname(config)#configure terminalDevice-wide configuration changes
Interface Configurationhostname(config-if)#interface <INTERFACE>Per-interface settings
Line Configurationhostname(config-line)#line vty 0 4 or line con 0Console and VTY settings
Router Configurationhostname(config-router)#router <PROTOCOL>Routing protocol settings
VLAN Configurationhostname(config-vlan)#vlan <VLAN-ID>VLAN name and settings

exit moves back one level. end or Ctrl+Z returns to Privileged EXEC mode from any sub-mode.

Device Inspection — Read-Only

CommandModePurposeRisk
show versionPrivileged EXECPlatform, software release, uptime, hardwareLOW
show running-configPrivileged EXECActive configuration in RAMLOW — output is sensitive
show startup-configPrivileged EXECSaved configuration in NVRAMLOW — output is sensitive
show clockPrivileged EXECDevice timeLOW
show ntp associationsPrivileged EXECNTP synchronisation statusLOW
show usersPrivileged EXECActive management sessionsLOW
show loggingPrivileged EXECBuffered device logsLOW
show cdp neighbors detailPrivileged EXECDirectly connected Cisco devices (where CDP is enabled)LOW
show lldp neighbors detailPrivileged EXECDirectly connected devices via LLDP (vendor-neutral)LOW

Interface Status

CommandModePurposeRisk
show ip interface briefPrivileged EXECCompact view of addresses and status for all interfacesLOW
show interfacesPrivileged EXECDetailed statistics, errors and countersLOW
show interfaces <INTERFACE>Privileged EXECStatus and counters for one interfaceLOW
show interfaces statusPrivileged EXECSwitch port state, VLAN, duplex and speed (where supported)LOW

VLANs

CommandModePurposeRisk
show vlan briefPrivileged EXECVLANs and port membershipLOW
show mac address-tablePrivileged EXECLearned MAC addresses and portsLOW
vlan <VLAN-ID>Global ConfigCreate VLAN and enter VLAN config modeMEDIUM
name <VLAN-NAME>VLAN ConfigAssign a descriptive name to the VLANMEDIUM
interface <INTERFACE>Global ConfigEnter interface configMEDIUM
switchport mode accessInterface ConfigSet port as access portMEDIUM
switchport access vlan <VLAN-ID>Interface ConfigAssign port to VLANMEDIUM — verify the VLAN exists first

Trunk Ports

CommandModePurposeRisk
show interfaces trunkPrivileged EXECActive trunks and permitted VLANsLOW
switchport mode trunkInterface ConfigSet port as trunkHIGH — can affect multiple VLANs
switchport trunk native vlan <VLAN-ID>Interface ConfigSet native VLAN for untagged trafficHIGH — mismatch causes problems
switchport trunk allowed vlan <VLAN-LIST>Interface ConfigReplace the full permitted VLAN listHIGH — verify before use
switchport trunk allowed vlan add <VLAN-LIST>Interface ConfigAdd VLANs to permitted list without replacing itHIGH

Spanning Tree

CommandModePurposeRisk
show spanning-treePrivileged EXECSTP status across VLANsLOW
show spanning-tree vlan <VLAN-ID>Privileged EXECSTP status for one VLANLOW
show spanning-tree interface <INTERFACE> detailPrivileged EXECSTP detail for one portLOW

Routing

CommandModePurposeRisk
show ip routePrivileged EXECFull routing tableLOW
show ip route connectedPrivileged EXECDirectly connected routesLOW
show ip route staticPrivileged EXECStatically configured routesLOW
ping <DESTINATION>Privileged EXECBasic connectivity testLOW
traceroute <DESTINATION>Privileged EXECPath and hop latencyLOW
ip route <NETWORK> <SUBNET-MASK> <NEXT-HOP>Global ConfigAdd static routeHIGH — verify next-hop and reverse path first

Connectivity Testing

ping and traceroute confirm reachability and path. Use ping <DESTINATION> source <SOURCE-INTERFACE> to test from a specific interface where supported. A successful ping from the device does not confirm client reachability if NAT, ACLs or routing asymmetry is involved.

SSH Configuration and Inspection

CommandModePurposeRisk
show ip sshPrivileged EXECSSH version and statusLOW
show running-config | section line vtyPrivileged EXECVTY line configurationLOW — output is sensitive
hostname <HOSTNAME>Global ConfigSet device hostname (required for SSH key generation)MEDIUM
ip domain name <DOMAIN>Global ConfigSet domain name (required for key generation)MEDIUM
crypto key generate rsa modulus 2048Global ConfigGenerate RSA keys for SSHMEDIUM — verify current Cisco guidance for minimum key size
ip ssh version 2Global ConfigEnforce SSH version 2MEDIUM
username <USERNAME> privilege <LEVEL> secret <STRONG-UNIQUE-SECRET>Global ConfigCreate local user with hashed secretMEDIUM
line vty 0 4Global ConfigEnter VTY line configurationMEDIUM
login localLine ConfigAuthenticate using local user databaseMEDIUM
transport input sshLine ConfigAllow only SSH (not Telnet) on VTY linesMEDIUM
exec-timeout <MINUTES> <SECONDS>Line ConfigSet session idle timeoutMEDIUM

SSH protects the connection; it does not by itself make the account secure. A hostname and domain name must be configured before RSA keys can be generated. Verify with show ip ssh after configuration.

Users and Sessions

CommandModePurposeRisk
show usersPrivileged EXECActive sessions and lines in useLOW
show running-config | include usernamePrivileged EXECList local user accountsLOW — output is sensitive
no username <USERNAME>Global ConfigRemove a local user accountHIGH — do not remove the account you are using
security passwords min-length <LENGTH>Global ConfigEnforce minimum password length for line passwordsMEDIUM

ACL Inspection

CommandModePurposeRisk
show access-listsPrivileged EXECAll ACLs and hit countersLOW
show ip interface <INTERFACE>Privileged EXECConfirm ACL applied to interface and directionLOW

An incorrectly applied ACL can immediately block legitimate users, management access or business traffic. Confirm management access before applying any ACL to an interface.

DHCP Inspection

CommandModePurposeRisk
show ip dhcp poolPrivileged EXECConfigured DHCP poolsLOW
show ip dhcp bindingPrivileged EXECActive DHCP leases and assigned addressesLOW
show ip dhcp conflictPrivileged EXECAddresses with detected conflictsLOW

NAT Inspection

CommandModePurposeRisk
show ip nat translationsPrivileged EXECActive NAT translation tableLOW
show ip nat statisticsPrivileged EXECNAT hit counts and pool usageLOW
show ip interface <INTERFACE>Privileged EXECConfirm NAT inside or outside designation on interfaceLOW

Logging

CommandModePurposeRisk
show loggingPrivileged EXECBuffered logs and logging configurationLOW
logging host <SYSLOG-SERVER>Global ConfigSend logs to a remote syslog serverMEDIUM
logging trap <LEVEL>Global ConfigSet minimum severity level for remote loggingMEDIUM
service timestamps log datetime msecGlobal ConfigAdd accurate timestamps to log entriesMEDIUM
terminal monitorPrivileged EXECDisplay live syslog in current session — use with careLOW

Configuration Saving

CommandModePurposeRisk
show running-configPrivileged EXECActive configuration in RAMLOW
show startup-configPrivileged EXECSaved configuration in NVRAMLOW
copy running-config startup-configPrivileged EXECSave running configuration to NVRAMMEDIUM — verify the configuration is correct first

Configuration changes take effect in running-config immediately. They are lost after a restart unless saved. Save only after verifying the change.

Secure Backup

Configuration files may contain credentials, shared secrets, ACLs and infrastructure details. Store and transmit them securely. SCP or a protected network configuration-management platform is preferred where supported. TFTP and FTP provide no transport encryption and should be used only in formally accepted and isolated environments.

Troubleshooting Sequence

  1. 1Physical — check cables, SFPs, port LEDs, PoE where relevant
  2. 2Interface — show interfaces status, show interfaces <INTERFACE>
  3. 3IP addressing — show ip interface brief, verify address and mask
  4. 4VLAN — show vlan brief, confirm port membership
  5. 5Trunk — show interfaces trunk, confirm VLAN allowed and native VLAN
  6. 6Routing — show ip route, confirm route exists and next-hop is reachable
  7. 7ACL — show access-lists, show ip interface <INTERFACE>
  8. 8Application or service — confirm server-side, firewall and DNS after Layer 1–4 checks pass

Troubleshooting should move from physical state, to interface state, to addressing, to VLANs, to routing, to policy.

High-Risk Commands

The following commands can erase configuration, disconnect administrators or reload the device. Do not run them without a current backup, console access and an approved change plan.

  • write erase / erase startup-config — deletes the saved configuration
  • reload — restarts the device, applying the startup configuration
  • configure replace — replaces running configuration from a file
  • default interface <INTERFACE> — resets interface to defaults
  • no vlan <VLAN-ID> — removes a VLAN and disconnects associated ports
  • shutdown — administratively disables an interface
  • no commands that remove routing, ACL or security configuration

Want the full explanation?

The full Technology Intelligence article covers each of these sections in depth, with security modernisation guidance, troubleshooting workflows by symptom, DHCP, NAT, port security, AAA, Spanning Tree safeguards and an Administrator Technical Note covering advanced hardening topics.

Essential Cisco IOS Commands for Network Configuration and Troubleshooting

Plain-English Takeaway

Confirm the command mode, inspect before changing, verify the result and save only what has been tested. Prefer SSH, named accounts, SNMPv3 and secure backup methods. Back up the configuration before any production change and keep console access available at all times.

Downloadable guide

Download the Cisco IOS Essential Commands Cheat Sheet

A printable A4 PDF covering IOS modes, inspection commands, VLAN, trunk, routing, SSH, ACLs, logging, configuration saving, troubleshooting sequence and security warnings.

Download Cheat Sheet

Free download. No email address required.

Want the full business explanation?

The Technology Intelligence article covers why this matters, where it helps and what to watch out for.

Read the full Technology Intelligence article

Related Knowledge Centre resources

Still unsure what applies to your business?

Ask the IT Club Advisor about Microsoft 365, browsers, cyber security, productivity or any everyday technology problem.

Ask Your IT Question

Free to ask. No credit card. No sales pressure. Fair usage applies.