Cisco Catalyst – Most Useful Commands for Network Engineers

Cisco Catalyst switches are the backbone of many enterprise networks. Whether you are managing Layer 2 access switches or Layer 3 distribution devices, knowing the right commands can make configuration and troubleshooting much faster.
Here’s a complete list of the most useful Cisco Catalyst commands you’ll need in your daily network operations.

1.Basic Device Information

      CommandDescription
      show versionDisplays model, IOS version, uptime, and serial number.
      show running-configShows the active running configuration.
      show startup-configDisplays the configuration saved in NVRAM.
      show hardwareLists chassis, fan, and power supply details.
      show license summaryDisplays feature and license status.

      2. Interface and VLAN Commands

      CommandDescription
      show interfaces statusDisplays all port statuses (speed, duplex, VLAN).
      show interfaces <interface>Detailed statistics for a specific interface.
      show interfaces counters errorsLists port error counters.
      show vlan briefDisplays VLAN configuration summary.
      show interfaces trunkShows trunk ports and allowed VLANs.
      show mac address-tableDisplays learned MAC addresses and VLAN associations.

      3. IP Configuration & Routing

      CommandDescription
      show ip interface briefSummarizes IP addresses and interface states.
      show ip routeDisplays routing table (useful for L3 switches).
      ping <destination>Tests basic connectivity.
      traceroute <destination>Traces path to a remote host.

      4. Security & Port Management

      CommandDescription
      show port-securityDisplays port security settings on all ports.
      show port-security interface <int>Checks security violations on a port.
      shutdown / no shutdownDisables or enables an interface.
      clear port-security stickyClears sticky MAC addresses.

      5. Spanning Tree Protocol (STP)

      CommandDescription
      show spanning-tree summaryDisplays STP mode and instance count.
      show spanning-tree vlan <id>Shows STP status for a specific VLAN.
      show spanning-tree rootDisplays the current root bridge.

      6. Power over Ethernet (PoE)

      CommandDescription
      show power inlineDisplays PoE usage per port.
      show environment powerShows total power availability and usage.

      7. CDP / LLDP (Neighbor Discovery)

      CommandDescription
      show cdp neighborsDisplays directly connected Cisco devices.
      show cdp neighbors detailShows detailed information about neighbors.
      show lldp neighbors detailFor non-Cisco devices using LLDP.

      8. Configuration Management

      CommandDescription
      write memory or copy running-config startup-configSaves the running configuration.
      copy running-config tftp:Backs up configuration to a TFTP server.
      copy tftp: running-configRestores configuration from TFTP.
      write eraseResets the switch to factory defaults.

      9. Troubleshooting Commands

      CommandDescription
      show loggingDisplays system logs.
      show processes cpuShows CPU usage statistics.
      show processes memoryDisplays memory utilization.
      show arpLists IP-to-MAC address mappings.
      show ip dhcp bindingDisplays DHCP-assigned IPs.

      10. Stack Management (for Stackable Switches)

      CommandDescription
      show switchDisplays stack members and roles.
      switch <number> priority <value>Sets stack master priority.
      show switch stack-portsDisplays stack link status.

      Useful CLI Key Shortcuts

      Ctrl + A Move cursor to line start

      Ctrl + E Move cursor to line end

      Ctrl + Z Exit to privileged EXEC mode

      show history Displays recent command history