Reference

Commands I've Learned

Every command earns its place here by being used in a lab — typed by hand, never pasted. Each one lists what it does and the moment I reach for it. This page grows with every lab.

# PC / Endpoint Tools (Labs 01–03)

CommandWhat it doesWhen I reach for it
ping <ip>Tests reachability to another hostFirst command in almost every problem
ipconfig /allShows the PC's IP, mask, gateway, DNS, MAC"Can't connect" — check what the machine actually has
tracert <ip>Shows every router hop toward a destinationPing fails — find where the path dies
nslookup <name>Tests DNS name resolutionSites won't load by name but ping-by-IP works
arp -aShows learned IP→MAC mappingsChecking if the PC ever heard from the gateway

# Switch Basics & VLANs (Labs 02–06)

CommandWhat it doesWhen I reach for it
show mac address-tableShows which MAC the switch learned on which portFinding where a device physically lives
show interfaces statusPort up/down, speed, duplex, VLAN per portFirst check for any "no link" problem
vlan 10 + name HRCreates a VLAN and names itSegmenting departments
switchport mode accessMakes a port carry exactly one VLANEvery end-device port
switchport access vlan 10Assigns the port's VLANPutting a PC in the right department
show vlan briefAll VLANs and their assigned ports"PC can't reach its own department" — check assignment
switchport mode trunkMakes a link carry all VLANs with 802.1Q tagsEvery switch-to-switch (and router-on-a-stick) link
show interfaces trunkWhich links are trunking and which VLANs they allow"Works on same switch, fails across switches" → here first

# Device Management (Lab 03)

CommandWhat it doesWhen I reach for it
enable / configure terminalEnter privileged then global config modeThe doorway to everything
hostname SW1Names the deviceFirst line of every device setup
show running-configThe live configurationReading what's actually configured, not assumed
copy running-config startup-configSaves config so it survives reloadAfter every change — learned this the hard way
show ip interface briefEvery interface, its IP and up/down stateThe fastest overview command on any device
show versionIOS version, uptime, hardwareInventory and "did it just reboot?"

# Routing & DHCP (Labs 07–11)

CommandWhat it doesWhen I reach for it
interface gi0/0.10 + encapsulation dot1Q 10Subinterface tagged for VLAN 10 (router-on-a-stick)Inter-VLAN routing on one physical port
ip route <net> <mask> <next-hop>Static routeManually teaching a router a path
ip route 0.0.0.0 0.0.0.0 <next-hop>Default route (gateway of last resort)Sending unknown traffic toward the edge/ISP
show ip routeThe routing table — C/S/S*/O codesThe single most important command in routing
ip dhcp pool HR + network / default-router / dns-serverDHCP scope on a routerAutomatic addressing per VLAN
show ip dhcp bindingWhich client got which address"Did the client actually get a lease?"
router ospf 1 + network <net> <wildcard> area 0Enables OSPF on matching interfacesDynamic routing setup
show ip ospf neighborAdjacency states with other routersOSPF problem? This is always command #1
How this page grows: after each lab, the new commands move from the lab's notes into a table here. If a command has never been used in one of my labs, it doesn't get listed — this is a record of practice, not a copy-paste of someone's cheat sheet.