Skip to content
Visual explainer 4h to learn 4 steps

Troubleshoot broken scenarios

Find and fix deliberately injected faults using the layered method and your tools.

By Invicly Tech, , in Computer Networking. About 13 minutes to read.

Topic 51 of 51

In short

Practising on deliberately broken networks builds real troubleshooting skill. Have a partner, or a script, inject faults such as a wrong access VLAN, a missing route, a bad gateway, a DNS typo or an overly strict ACL. Diagnose each one layer by layer and record symptom, evidence, cause and fix.

Explained simply

Building a network that works is only half the skill. The other half is fixing it when it breaks. In this project a partner, or a script, breaks your network on purpose, and you must find and fix each fault using the method and tools you learned.

Typical faults are small and realistic: a switch port in the wrong VLAN, a trunk that forgets one VLAN, a PC with the wrong gateway, a missing route, a DNS server typo, or an ACL line that blocks too much. In real offices, these simple mistakes cause most outages.

For each fault you work layer by layer. Start with the symptom and who is affected, test from the bottom up, and let each test result decide the next test. Do not guess and do not change many things at once.

You also write it down. A short fault report records the symptom, the tests, the root cause, the fix, and how you confirmed it. Over time you collect a personal runbook that makes the next fault much faster to solve.

Press Play on a diagram to walk through it one step at a time.

CompareFaults and their tell-tale symptoms
Layer 2 faults
  • Wrong VLAN: no DHCP lease, 169.254 address
  • Trunk missing VLAN: whole VLAN isolated
  • Loop: network-wide slowdown
Layer 3 faults
  • Wrong gateway: local works, remote fails
  • Missing return route: one-way traffic
  • NAT missing: private IPs cannot reach internet
Layer 4-7 faults
  • ACL blocking: ping works, port fails
  • DNS wrong: IP works, names fail
  • Service down: connection refused
CompareThree faults that look alike: no internet
Wrong gateway on host
  • Same-subnet pings work
  • Other VLANs and internet fail
  • ipconfig shows odd gateway
  • Fix the host or DHCP pool
NAT not matching
  • All internal pings work
  • Internet IPs fail from every VLAN
  • No new NAT translations
  • Fix NAT ACL or inside/outside
DNS server wrong
  • Ping 1.1.1.1 works
  • Names fail with a timeout
  • nslookup shows the bad server
  • Fix dns-server in the pool

In depth

Designing good fault scenarios

Good practice faults are realistic, have one root cause each, and produce a clear symptom. Ask a partner to inject them without telling you what changed, or write a script that applies one random change from a list. Start with single faults, then try two at once, because real outages sometimes stack.

Cover every layer. Layer 1: a shut-down interface, a disconnected cable. Layer 2: wrong access VLAN, VLAN missing from a trunk, native VLAN mismatch, a port in err-disabled state from port security. Layer 3: wrong mask or gateway on a host, a missing static route, a subinterface with the wrong dot1Q tag, missing ip nat inside. Services: an exhausted DHCP pool, a missing helper-address, a wrong DNS server in the DHCP pool, a typo in a DNS record. Policy: an ACL line in the wrong order, an ACL applied in the wrong direction. Keep a list of faults with their expected symptoms, so the person injecting knows what the learner should see.

  • One root cause per scenario at first
  • Cover layer 1, 2, 3, services and ACLs
  • Keep an answer key with expected symptoms
  • Progress to double faults later

Diagnosing layer 1 and layer 2 faults

Layer 1 and 2 faults usually make a whole host or VLAN go silent. Start on the client: does it have link, and does ipconfig or ip addr show an address from the right subnet? A 169.254.x.x address means DHCP got no answer, which is very often a VLAN problem rather than a DHCP problem.

On the switch, show interfaces status shows each port's state and VLAN; err-disabled means a protection feature such as port security shut it. show vlan brief shows whether the port sits in the expected VLAN. show interfaces trunk shows whether that VLAN is allowed and active on the uplink. A native VLAN mismatch produces CDP log messages (%CDP-4-NATIVE_VLAN_MISMATCH) and leaks traffic between VLANs. show mac address-table interface fa0/5 tells you whether the switch learned the client's MAC at all, and in which VLAN. If the MAC is learned in the wrong VLAN, the fix is the port's access VLAN.

MapClient has 169.254.x.x: where to look
No DHCP lease
  • Access port
    • show interfaces status
    • Wrong VLAN or err-disabled?
  • Trunk
    • show interfaces trunk
    • VLAN allowed and active?
  • Router side
    • Subinterface dot1Q tag
    • Interface up/up?
  • DHCP service
    • Pool exists and not exhausted?
    • helper-address if server is remote

Diagnosing layer 3 and service faults

If the client has a correct address, test the path step by step: ping its own gateway, then a host in another VLAN, then an internet IP, then a name. The first test that fails points to the layer. Cannot ping the gateway with a correct IP: check the subinterface (tag, IP, up/up). Gateway works but other VLANs do not: check the other host's gateway and mask, and show ip route on the router. Internal works but internet IPs do not: check the default route and NAT with show ip nat translations while you ping; no new translation means NAT is not matching (wrong ACL or missing ip nat inside or outside).

If IPs work but names fail, it is DNS: nslookup name shows which server the client asks and what it returns. Check the dns-server value in the DHCP pool and the records on the DNS server. One-way problems usually mean a missing return route; a capture on both sides proves it.

FlowPath test order from a client
  1. 1
    Own address

    ipconfig: right subnet, mask, gateway, DNS

  2. 2
    Ping gateway

    Fails: VLAN, trunk or subinterface

  3. 3
    Ping other VLAN

    Fails: routing, other host's gateway or ACL

  4. 4
    Ping internet IP

    Fails: default route or NAT

  5. 5
    Resolve a name

    Fails: DNS server or record

  6. 6
    Open the service

    Fails: ACL on the port or service down

ACL faults and documenting each fix

ACL faults have a typical signature: some traffic works and some does not, often ping works but a service port fails, or one VLAN is cut off while others are fine. show access-lists shows match counters per line; clear access-list counters, repeat the failing test, and see which line's counter rises. That line is the one acting on your traffic. Also check direction and placement with show ip interface g0/0.20, which lists the inbound and outbound ACLs. A common mistake is applying an ACL out instead of in, or forgetting that the implicit deny drops everything a missing permit should have allowed.

For every fault, write a short report: symptom (what and who), tests run with results, root cause, fix (the exact command), verification (the original failing test now passes from the original client), and prevention. Time yourself. After a few rounds, common faults should take minutes, and your reports become a runbook other people can follow.

  • clear access-list counters, re-test, read counters
  • show ip interface X shows ACL direction
  • Re-test from the original failing client
  • Report: symptom, tests, cause, fix, verification, prevention

Learn it in 4 short steps

About 1h each. Track them with a timer in your plan.

  1. 1
    Inject faults such as wrong VLANs~1h
  2. 2
    Break routes, DNS and gateways~1h
  3. 3
    Diagnose each fault layer by layer~1h
  4. 4
    Document symptoms, cause and fix~1h

Key points

  • Start from the symptom and the scope, not from a guess.
  • Use the bottom-up checklist and capture packets when unsure.
  • Each fault report lists symptom, tests run, root cause and fix.
  • Time yourself and repeat until common faults take minutes.

Key terms

Tap a card to flip it. 0/3 known

Examples

Fault: one PC in VLAN 10 gets 169.254.12.7

Symptom: one staff PC has no network; neighbours are fine, so scope is one port. Step 1: ipconfig shows 169.254.12.7, meaning no DHCP answer. Step 2: on the access switch, show interfaces status shows fa0/7 in VLAN 15 instead of 10. VLAN 15 is an unused VLAN that is not on the trunk and has no DHCP pool, so the PC's requests go nowhere. Step 3: show mac address-table interface fa0/7 confirms the PC's MAC was learned in VLAN 15. Step 4: fix the port, renew the lease, and run the full checklist. Root cause: a typo during desk changes put the port in VLAN 15.

text
SW1# show interfaces status | include Fa0/7
Fa0/7   PC-Staff-7   connected   15   a-full  a-100  10/100BaseTX
SW1# configure terminal
SW1(config)# interface fa0/7
SW1(config-if)# switchport access vlan 10
SW1(config-if)# end
SW1# show vlan brief | include STAFF
! On the PC: ipconfig /release, then ipconfig /renew

Fault: staff can ping the file server but cannot open shares

Symptom: since this morning all staff fail to open \\files; ping to 10.20.40.20 works. Step 1: ping working but the service failing points above layer 3: an ACL or the service. Step 2: on the server the SMB service is running and listening on TCP 445. Step 3: on the router, clear the ACL counters and retry; the counter on a new deny line rises. Step 4: the line deny tcp any any eq 445, added to block SMB to the internet, was placed above the permit for the server. Step 5: move the permit above it, re-test from a staff PC, and record the cause and the fix.

text
R1# clear access-list counters STAFF-IN
R1# show access-lists STAFF-IN
Extended IP access list STAFF-IN
    10 deny tcp any any eq 445 (37 matches)
    20 permit tcp 10.20.10.0 0.0.0.255 host 10.20.40.20 eq 445
    30 permit ip 10.20.10.0 0.0.0.255 any (120 matches)
R1(config)# ip access-list extended STAFF-IN
R1(config-ext-nacl)# no 20
R1(config-ext-nacl)# 5 permit tcp 10.20.10.0 0.0.0.255 host 10.20.40.20 eq 445

Quick reference

  • 169.254.x.x on a client: no DHCP answer; check port VLAN, trunk, pool, helper
  • show interfaces status: port state and VLAN; err-disabled needs a fix and a bounce
  • show mac address-table interface X: was the client's MAC learned, and in which VLAN?
  • Test order: own IP, gateway, other VLAN, internet IP, name, service port
  • No new entries in show ip nat translations while pinging out: NAT is not matching
  • Ping works, service fails: ACL or the service; check ACL match counters
  • Native VLAN mismatch shows as CDP-4-NATIVE_VLAN_MISMATCH log messages
  • Always re-test from the original failing client before closing the fault

Common mistakes

  • Fixing the symptom without finding the root cause.
  • Not re-testing from the original failing client after the fix.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1A PC has a correct IP and gateway, can ping other VLANs, but cannot reach any internet IP. Every VLAN has the same problem. What is most likely?

Question 2

2Which command shows whether a VLAN is allowed and active on a trunk?

Question 3

3Ping to 8.8.8.8 works, but ping example.com fails. What do you check first?

Question 4

4An ACL seems to block traffic it should allow. What is the fastest way to see which line matches?

Question 5

5A user's port shows err-disabled. What usually caused it?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Write a fault list of six scenarios for your partner, one per layer or service, each with its expected symptom.

  2. Exercise 2medium

    Your partner removed VLAN 20 from the trunk between the core switch and the router. Describe the symptoms, the tests that reveal it, and the fix.

  3. Exercise 3hard

    Write a bash script for Linux lab clients that runs the path test order and prints the first failing step, so a learner can triage in seconds.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

What does a 169.254 IP address mean?
It is a link-local address the device gave itself because no DHCP server answered. The cause is usually the wrong VLAN, a trunk problem, or a DHCP pool or relay issue.
How do I fix an err-disabled port on a Cisco switch?
Find and remove the cause first (show interfaces status err-disabled and the logs), then reset the port with shutdown followed by no shutdown. You can also configure errdisable recovery to retry automatically.
What should a fault report contain?
The symptom and scope, the tests you ran with results, the root cause, the exact fix, how you verified it from the affected client, and how to prevent it next time.
Why does ping work while the application fails?
Ping only proves IP connectivity. The application also needs its TCP or UDP port open through every ACL and firewall, a running service, and working DNS.

Go deeper

ShareXLinkedInWhatsApp