When a user says "the network is down", the worst thing you can do is start changing configs at random. In this post I show the bo...
When a user says "the network is down", the worst thing you can do is start changing configs at random. In this post I show the bottom-up method I use at work, the Windows and Cisco commands that go with each step, and four realistic faults you can break and fix yourself in Packet Tracer.
The bottom-up method
Bottom-up troubleshooting follows the OSI model from the cable upward. You confirm that each layer works before you look at the one above it. It is slower than guessing when you already know the answer, but it never skips a problem, and it is the approach that works best when you are new or the network is unfamiliar.
| Layer | Question to answer | Windows command | Cisco command |
|---|---|---|---|
| 1 Physical | Is the link up? Right cable, port enabled? | ipconfig ("Media disconnected") | show ip interface brief, show interfaces |
| 2 Data link | Correct VLAN? Trunk passing it? MAC learned? | arp -a | show vlan brief, show interfaces trunk, show mac address-table, show cdp neighbors |
| 3 Network | Correct IP, mask and gateway? Routes both ways? | ipconfig /all, ping, tracert, route print | show ip route, ping, traceroute, show ip protocols |
| 4 Transport | Is a filter blocking the port? | netstat -an, Test-NetConnection (PowerShell) | show access-lists, show ip interface |
| 7 Application | Does name resolution and the service work? | nslookup, browser | show running-config (DNS, DHCP settings) |
A useful habit: on the PC, ping in this order and stop at the first failure.
ping 127.0.0.1– the TCP/IP stack works.- Ping the PC's own IP – the NIC is configured.
- Ping the default gateway – Layer 1, 2 and the local subnet are fine.
- Ping a remote IP – routing works in both directions.
- Ping a remote name – DNS works.
The step where the ping fails tells you which layer to investigate.
Reading Cisco ping and traceroute output
| Character | Meaning |
|---|---|
! | Echo reply received |
. | Timed out waiting for a reply |
U | A router sent back "destination unreachable" |
Q | Source quench (destination too busy) |
M | Could not fragment |
? | Unknown packet type |
The first ping to a new destination often shows .!!!!. That single dot is the time spent on ARP, not a fault.
Lab topology
Build this in Packet Tracer with two 2911 routers, one 2960 switch, a PC and a server. Configure it fully working first, then introduce each fault one at a time.
| Device | Interface | IP address / mask | Gateway / notes |
|---|---|---|---|
| PC1 | Fa0 (to SW1 Fa0/1) | 192.168.10.10/24 | GW 192.168.10.1, DNS 192.168.20.100 |
| SW1 | Fa0/1, G0/1 | - | Both access ports in VLAN 10 (STAFF) |
| R1 | G0/0 (to SW1 G0/1) | 192.168.10.1/24 | Static route to 192.168.20.0/24 via 10.0.12.2 |
| R1 | G0/1 | 10.0.12.1/30 | Link to R2 |
| R2 | G0/1 | 10.0.12.2/30 | Link to R1 |
| R2 | G0/0 | 192.168.20.1/24 | Static route to 192.168.10.0/24 via 10.0.12.1 |
| Server1 | Fa0 | 192.168.20.100/24 | GW 192.168.20.1, DNS and HTTP services on |
Working baseline configuration for the routers and switch:
SW1(config)#vlan 10
SW1(config-vlan)#name STAFF
SW1(config-vlan)#exit
SW1(config)#interface fa0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW1(config-if)#interface g0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
R1(config)#interface g0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#interface g0/1
R1(config-if)#ip address 10.0.12.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 192.168.20.0 255.255.255.0 10.0.12.2
R2(config)#interface g0/1
R2(config-if)#ip address 10.0.12.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#interface g0/0
R2(config-if)#ip address 192.168.20.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 192.168.10.0 255.255.255.0 10.0.12.1
On Server1, add a DNS record www.lab.local pointing to 192.168.20.100. Confirm PC1 can ping 192.168.20.100 and open http://www.lab.local before you break anything.
Scenario 1: Link to R2 is down (Layer 1)
Break it: on R1, interface g0/1 then shutdown.
Symptom: PC1 can ping its gateway 192.168.10.1 but not the server. Since the gateway works, Layers 1–3 on the LAN side are fine, so move to the router.
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.168.10.1 YES manual up up
GigabitEthernet0/1 10.0.12.1 YES manual administratively down down
GigabitEthernet0/2 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
"administratively down" means someone typed shutdown. Compare the other states you might see:
- down / down – no signal: cable unplugged, wrong cable, or the far end is shut.
- up / down – physical link is fine but Layer 2 is not (for example, an encapsulation mismatch on a serial link).
- up / up – the interface is working.
Also note that when G0/1 is down, the static route via 10.0.12.2 disappears from show ip route, because its next hop is no longer reachable.
Fix: interface g0/1, no shutdown.
Scenario 2: PC in the wrong VLAN (Layer 2)
Break it: on SW1, interface fa0/1 then switchport access vlan 1.
Symptom: PC1's link light is green and ipconfig looks correct, but even the gateway does not answer.
C:\>ping 192.168.10.1
Pinging 192.168.10.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.10.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Running arp -a on the PC shows no entry for 192.168.10.1, which means the PC's ARP request never reached R1. That points at Layer 2, so check the switch:
SW1#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig0/2
10 STAFF active Gig0/1
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Fa0/1 is in VLAN 1 while the uplink to R1 (Gig0/1) is in VLAN 10. They are in different broadcast domains, so ARP cannot cross. show mac address-table would also show PC1's MAC learned in VLAN 1.
Fix: interface fa0/1, switchport access vlan 10. In a bigger network also check show interfaces trunk to confirm the VLAN is allowed and active on every trunk along the path.
Scenario 3: Wrong default gateway on the PC (Layer 3, host side)
Break it: set PC1's gateway to 192.168.10.254.
Symptom: PC1 can ping 192.168.10.1 (same subnet, no gateway needed) but not 192.168.20.100. Students often blame the router here, because "the router pings fine".
C:\>ipconfig /all
FastEthernet0 Connection:(default port)
Connection-specific DNS Suffix..:
Physical Address................: 0060.3E5A.1B22
Link-local IPv6 Address.........: FE80::260:3EFF:FE5A:1B22
IPv6 Address....................: ::
IPv4 Address....................: 192.168.10.10
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: ::
192.168.10.254
DNS Servers.....................: ::
192.168.20.100
(Output trimmed to the useful lines.)
There is no device at 192.168.10.254, so every packet for a remote network is sent to nowhere. tracert 192.168.20.100 fails at hop 1 with "Request timed out" on every line. When hop 1 never answers, check the PC's gateway before anything else.
Fix: set the gateway to 192.168.10.1. On a real Windows PC also run ipconfig /release and ipconfig /renew if the address came from DHCP, because the wrong gateway may be coming from the DHCP pool's default-router setting.
Scenario 4: Missing return route (Layer 3, router side)
Break it: on R2, no ip route 192.168.10.0 255.255.255.0 10.0.12.1.
Symptom: PC1 cannot reach the server. Traceroute shows where the path stops:
C:\>tracert 192.168.20.100
Tracing route to 192.168.20.100 over a maximum of 30 hops:
1 0 ms 0 ms 0 ms 192.168.10.1
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
(The timeouts continue up to hop 30; press Ctrl+C to stop.)
Hop 1 answers, so the PC and R1 are fine. At hop 2, R2 receives the probe but cannot send its reply back, because it has no route to 192.168.10.0/24. Now the confusing part: a plain ping from R1 works.
R1#ping 192.168.20.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms
It works because R1 uses 10.0.12.1 as the source, and R2 has a connected route back to 10.0.12.0/30. To test the way PC1 sees it, use an extended ping with the LAN interface as the source:
R1#ping
Protocol [ip]:
Target IP address: 192.168.20.100
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.10.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.100, timeout is 2 seconds:
Packet sent with a source address of 192.168.10.1
.....
Success rate is 0 percent (0/5)
Now check R2's routing table:
R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.12.0/30 is directly connected, GigabitEthernet0/1
L 10.0.12.2/32 is directly connected, GigabitEthernet0/1
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0
L 192.168.20.1/32 is directly connected, GigabitEthernet0/0
There is no entry for 192.168.10.0/24 and no default route. Fix: ip route 192.168.10.0 255.255.255.0 10.0.12.1 on R2. The lesson: routing must work in both directions, and you should always test from the source subnet, not from the router's nearest interface.
Checking the application layer
If ping 192.168.20.100 works but ping www.lab.local fails, routing is fine and the problem is name resolution. Run nslookup www.lab.local. On a real Windows PC with a wrong DNS server you will see "DNS request timed out" and "Server: UnKnown". Check the DNS Servers line in ipconfig /all, and on the server confirm the DNS service is on and the record exists. If names resolve but a web page will not load, look for an access list with show access-lists on the routers along the path; the match counters show which line is dropping your traffic.
Prefer video? Watch more hands-on labs on the Technical Hakim YouTube channel.
Common mistakes
- Changing several things at once. If it starts working you will not know which change fixed it. Change one thing, then test.
- Testing from the wrong place. A ping from the router is not the same as a ping from the user's PC, as scenario 4 showed. Use extended ping with a source.
- Treating a blocked ping as "down". Windows Firewall blocks inbound ICMP by default on many networks. A failed ping to a Windows PC does not prove the network is broken.
- Ignoring the first-ping dot.
.!!!!on a router is normal ARP delay, not packet loss. - Not saving a baseline. Keep
show running-configandshow ip routeoutputs from when the network worked. Comparing against a known-good state is the fastest troubleshooting tool there is.
Summary
Work from the cable upward: interface status, then VLANs and MAC learning, then IP settings and routes in both directions, then filters and DNS. Use ping to find which layer fails, traceroute to find where on the path it fails, and the matching show command to find why.
Related tutorials
- OSI Model vs TCP/IP Model: Layers, Protocols and a Wireshark Walkthrough
- Configuring Static VLANs on a Cisco Switch (Packet Tracer Lab)
- Trunking and 802.1Q on Cisco Switches: Configs and Common Errors
- Static Routes vs Default Routes: When to Use Each (with Lab)
Sources
- RFC 792 – Internet Control Message Protocol: https://www.rfc-editor.org/rfc/rfc792
- RFC 1122 – Requirements for Internet Hosts – Communication Layers: https://www.rfc-editor.org/rfc/rfc1122
- Cisco IOS Configuration Fundamentals Command Reference – ping and traceroute
- Cisco IOS IP Routing Configuration Guide – Static Routes
- Microsoft Windows Commands reference – ipconfig, ping, tracert, nslookup
No comments