Cisco Switch Commands

20 Cisco Switch Commands Every IT Tech Should Know

A practical, beginner-friendly lab for getting comfortable on Cisco switches. You will first build a small Packet Tracer network, then use it to practice the commands that help IT techs inspect ports, VLANs, trunks, MAC tables, neighbors, logs, and safe basic configuration.

Scenario

A user says a printer is offline. You have the printer IP, a switch login, and a vague note that it should be on the printer VLAN. Your job is to verify the path, ask the switch specific questions, and narrow the issue before touching any ports.

What This Lab Is

This is a guided command workflow lab. The commands are grouped by the order a working tech would usually use them: build a safe lab, prove where you are, inspect config, check ports and VLANs, trace a device, look upstream, review health signals, and only then make careful lab-only changes.

What You'll Learn

  • How Cisco command modes work: user EXEC, privileged EXEC, global config, and interface config
  • How to inspect running and startup configuration safely
  • How to read port status, descriptions, VLAN assignments, trunks, errors, logs, and uptime
  • How to move from an IP address to a MAC address to a physical switchport
  • How CDP, LLDP, spanning tree, and EtherChannel help you understand topology
  • How to add a port description, assign an access VLAN, bounce a port, and save config without being reckless

Lab Environment

The recommended path is Cisco Packet Tracer. The first step walks you through building a small network with two switches, one router, a PC, and a printer-style endpoint so the rest of the lab has real devices and links to inspect.

Want to skip the setup work?

You can download the ready-built Packet Tracer lab and jump into the command practice faster. If you are brand new, you can also build the topology yourself in the first step to learn how the devices, cables, VLANs, and gateways fit together.

If you are using Packet Tracer, start with the Cisco Networking Academy lab downloads page. You will need to create a free Cisco Networking Academy account and enroll in the introductory Cisco Packet Tracer course to access the download. Cisco Modeling Labs, GNS3/EVE-NG, or spare gear can also work if you already know how to create an equivalent topology.

Production warning

Do not change production switchports because a tutorial told you to. Use change control, confirm the correct device and port, save known-good output first, and ask a senior admin before touching VLANs, trunks, spanning tree, port-channels, or uplinks.

The 20 Commands

enable
show running-config
show startup-config
show ip interface brief
show interfaces status
show interfaces description
show vlan brief
show interfaces trunk
show mac address-table
show arp
show cdp neighbors detail
show lldp neighbors detail
show spanning-tree
show etherchannel summary
show interfaces counters errors
show logging
show version
ping / traceroute
configure terminal / interface / description
switchport access vlan / shutdown / no shutdown / copy run start

Time and Difficulty

  • Estimated time: 90-120 minutes if you build the topology from scratch
  • Estimated cost: free in Packet Tracer, or free if you already have lab gear
  • Difficulty: beginner, with realistic troubleshooting habits

How This Lab Is Structured

Each page builds on the same Packet Tracer topology and the same tracked endpoint. Start at the beginning if you are new so the later commands have real infrastructure to inspect. If you are reviewing, jump to the workflow you need.

Start the lab