Master IT Troubleshooting
Stop guessing and start isolating. Learn the 6-step root cause analysis framework, smart layer-by-layer strategies, and the exact command-line tools professionals use to fix broken systems fast.
Start Learning ↓01 Think Like a Detective, Not a Guesser
IT Troubleshooting is a systematic, repeatable process of finding the root cause of a technical problem and fixing it without breaking anything else. Instead of randomly clicking buttons or rebooting servers hoping the issue disappears, you gather evidence and narrow down possibilities one test at a time.
🩺 Real-World Analogy: The Doctor & The Car Mechanic
Imagine your car won't start. A bad mechanic immediately replaces the entire engine—expensive, slow, and it might not even fix the dead battery. A great mechanic checks the battery voltage, listens for the starter click, and tests the fuel pump before replacing a single part. Just like a doctor checks your temperature and blood pressure before prescribing medicine, an IT engineer diagnoses before acting.
Why Random Guessing ("Shotgun Troubleshooting") Fails
Beginners often fall into the trap of changing five settings at once: restarting the router, disabling the firewall, changing DNS, and reinstalling drivers all together. Even if the problem goes away, you have no idea which change fixed it—and worse, you may have left security holes open or created a brand-new bug.
✓ Checkpoint: Can you...
- Explain the difference between a symptom ("website won't load") and a root cause ("DNS server is unreachable")?
- Describe why changing multiple settings at once makes troubleshooting harder?
02 The 6-Step Troubleshooting Methodology
Define The 6-Step Troubleshooting Methodology (made famous by CompTIA A+ and Network+ standards) is the universal blueprint used by help desks, system administrators, and cloud Site Reliability Engineers (SREs) worldwide.
Understand Without a structured checklist, panic takes over during an outage. This 6-step loop ensures you never skip critical safety steps—like backing up data before making changes or confirming the fix actually worked before closing the ticket.
Know Here is what you actually do at each of the six steps:
Identify the Problem
Gather information from users, check error messages, and reproduce the issue. Always ask: "What changed recently?" and "Does this affect one user or everyone?"
Establish a Theory
List the most likely causes. Always question the obvious first—is the cable unplugged, is Wi-Fi off, did a password expire?—before suspecting rare hardware failure.
Test the Theory
Run a safe, read-only diagnostic test (like ping or checking logs) to prove your
theory. If your theory is wrong, return to Step 2 and form a new theory—or escalate.
Plan & Implement
Once the cause is confirmed, plan the fix carefully. Take backups or snapshots first, check for potential side effects, and apply the smallest change needed to resolve the issue.
Verify Functionality
Don't just test the one broken button—verify the entire system works normally and implement preventive measures (like monitoring alerts or auto-renewing certificates).
Document Findings
Write down the symptom, root cause, exact commands used, and final fix in your ticket or runbook. Future-you (and your teammates) will thank you when it happens again.
🧠 Memory Trick for the 6 Steps
"I Expect To Plan Very Diligently"
Identify → Establish Theory → Test Theory → Plan & Implement → Verify → Document
When Use this 6-step loop for every incident—from a printer not responding at home to a production cloud outage.
Execute Before touching a keyboard during your next IT issue, pause for 30 seconds and say Step 1 & Step 2 out loud.
✓ Checkpoint: Can you...
- Recite all 6 steps in order using the mnemonic?
- Explain what you must do in Step 3 if your test proves your theory is wrong?
03 Top-Down vs. Bottom-Up vs. Divide-and-Conquer
Define When a network or application breaks, there are 7 OSI layers where the fault could live (from Layer 1 Physical cables up to Layer 7 Applications). Your diagnostic approach decides which layer you inspect first.
Understand Checking all 7 layers in random order wastes time. Picking the right starting point lets you eliminate half the possibilities in a single command.
Know & When Compare the three approaches so you always pick the fastest path:
| Approach | How It Works | When to Use It |
|---|---|---|
| Bottom-Up | Start at Layer 1 (cables, power, link lights) and work upward to the app. | When a user says "Nothing works at all" or you suspect a hardware/cable disconnect. |
| Top-Down | Start at Layer 7 (browser, login, DNS, app config) and work downward. | When most things work, but one specific app or website fails (e.g., "Email works, Slack doesn't"). |
| Divide-and-Conquer | Start in the middle (Layer 3 with ping). If it works, go up; if it fails,
go down. |
Your go-to daily strategy—cuts your search space in half in 2 seconds! |
✓ Checkpoint: Can you...
- Explain why a successful
ping 8.8.8.8proves Layers 1, 2, and 3 are working? - Choose between Bottom-Up and Top-Down when a single website fails while everything else loads?
04 The Essential Diagnostic Toolkit
Define Every operating system (Windows, macOS, Linux) ships with built-in command-line tools that act like X-ray machines for your network and system.
Understand You don't need expensive third-party software to find 90% of IT issues. Knowing just six core tools—and which layer each one tests—turns a mysterious outage into a clear answer.
Know & Execute Here is how to run and read each essential tool:
ipconfig / ip addr
What it checks: Your device's own IP address, Subnet Mask, and Default Gateway (your router).
Red flag: Seeing 169.254.x.x (APIPA) means DHCP failed and your
device couldn't get an IP.
ping
What it checks: Sends small ICMP echo packets to test if a host is reachable and how fast it replies (ms).
Pro tip: Always test ping 127.0.0.1 (self) → Gateway →
8.8.8.8 (internet).
traceroute / tracert
What it checks: Reveals every router ("hop") your traffic passes through to reach its destination.
Red flag: Seeing * * * Request timed out starting at a specific
hop pinpoints where traffic is blocked.
nslookup / dig
What it checks: Translates a human domain name (shekharit.com)
into an IP address.
When to use: When ping 8.8.8.8 works, but websites fail to load
by name.
ss / netstat
What it checks: Shows which ports your machine is listening on (e.g., port 80 or 443) and active connections.
Example: ss -tuln (Linux) or netstat -ano
(Windows).
System & App Logs
What it checks: Exact error codes, timestamps, and failed service starts.
Where to look: journalctl -xe or /var/log/ on
Linux; Event Viewer on Windows.
# Quick 4-Command Health Check (Run in order!)
ip addr # 1. Do I have a valid IP & Gateway?
ping -c 3 8.8.8.8 # 2. Can I reach the internet by IP?
nslookup shekharit.com # 3. Does DNS resolve domain names?
ss -tuln # 4. Is my local service listening on the expected port?
✓ Checkpoint: Can you...
- Match
nslookup,ping,traceroute, andssto the layer/problem they diagnose? - Recognize what an IP address starting with
169.254.x.xtells you?
05 Real-World Outage Scenarios & Practice
Let's put the 6-step methodology, Divide-and-Conquer, and your CLI toolkit together on the most common help-desk ticket in history: "A website won't load!"
📝 Practice Problem 1: DNS vs. Gateway vs. Firewall
Given: A coworker reports, "I can't open any websites in my browser!" You open their terminal and observe:
ipconfigshows IP192.168.1.45and Default Gateway192.168.1.1.ping 192.168.1.1succeeds with1mslatency.ping 8.8.8.8succeeds with14mslatency.nslookup google.comreturnsDNS request timed out.
Find: Which component failed (Gateway, Firewall, or DNS), which OSI layer is broken, and what is your fix?
Show Solution
Step 1 (Analyze): ping 192.168.1.1 and
ping 8.8.8.8 both succeeded. That proves the physical cable/Wi-Fi, Default
Gateway, and internet routing (Layers 1–3) are 100% healthy.
Step 2 (Isolate): nslookup google.com timed out. Your
computer can reach the internet by IP address, but cannot translate domain names into
IPs.
Answer: This is a DNS failure (Layer 7)—not a Gateway
or general internet outage. Fix it by checking the configured DNS server IP (or
switching to 1.1.1.1 / 8.8.8.8) or verifying that port 53 isn't
blocked.
📝 Practice Problem 2: Localhost Works, Remote Fails
Given: You launched a new web app on a Linux server. On the server itself,
curl http://localhost:8080 returns the homepage. However, when teammates visit
http://10.0.0.50:8080 from their laptops, the connection times out. Running
ss -tuln on the server shows:
LISTEN 0 128 127.0.0.1:8080 0.0.0.0:*
Find: Why can't teammates connect, and what are the two things you must check or fix?
Show Solution
Step 1 (Read the socket): 127.0.0.1:8080 means the app is
bound only to the loopback interface (itself), ignoring traffic arriving on the
network card (10.0.0.50).
Step 2 (Check Firewall): Even after binding to 0.0.0.0:8080
(all interfaces), a host firewall (like ufw or firewalld) may
still block inbound port 8080.
Answer: Reconfigure the app to listen on 0.0.0.0:8080, and
allow TCP port 8080 through the server's firewall.
06 Knowledge Check
1. What is the main goal of IT Troubleshooting?
2. In the 6-Step Troubleshooting Methodology, what should you do if Step 3 (Test the Theory) proves your theory is wrong?
3. Which troubleshooting approach starts in the middle (Layer 3/4) with a quick test like
ping to split the problem in half?
4. A user can successfully ping 8.8.8.8, but nslookup
shekharit.com times out. What is broken?
5. Which command shows every router hop along the path to a destination so you can see where packets stop?
traceroute / tracertA
ipconfig / ip addrB
ss / netstatC