If a computer can access devices on the same network but cannot access devices on other networks, the problem is usually not “the internet” in general. It is usually a break in the chain somewhere between the local IP stack, the default gateway, DNS, or an upstream route.
CompTIA Cloud+ (CV0-004)
Learn practical cloud management skills to restore services, secure environments, and troubleshoot issues effectively in real-world cloud operations.
Get this course on Udemy at the lowest price →That is exactly why network troubleshooting commands matter for CompTIA A+ certification and real support work. They let you test each layer quickly, instead of guessing, rebooting random gear, and hoping the problem goes away.
For CompTIA A+ candidates, these commands show up in scenario-based questions, especially when a user asks, “Why can I reach my printer but not websites?” or “Why do local pings work but the internet does not?” They also connect directly to practical cloud and support work, which is useful context for the CompTIA Cloud+ (CV0-004) course from ITU Online IT Training.
In this guide, you will learn how ping, ipconfig, netstat, pathping, traceroute/tracert, nslookup, and arp work together. You will also see how to use them in a repeatable troubleshooting sequence that saves time and points you to the root cause faster.
Understanding the Network Troubleshooting Mindset
Good troubleshooting starts by separating symptoms from root cause. A user may say “the network is down,” but the real issue could be a bad DNS server, a wrong default gateway, a duplicate IP address, or a firewall rule blocking traffic beyond the local subnet.
The fastest way to solve a connectivity issue is to move from the simplest checks to the broader network. Start with the local device. Then test the local network. Then test the path to a remote host. After that, check name resolution and routing. This sequence mirrors how traffic actually leaves a machine.
This is also the logic behind the common exam-style question: a user is having problems connecting to other computers using hostnames. which of the following commands will best help you troubleshoot this problem? The answer often points to nslookup, because hostname problems are usually DNS-related, not raw connectivity failures.
Use a Layered Process, Not Guesswork
A repeatable process keeps you from jumping too early to advanced tools. If you can ping 127.0.0.1, the local TCP/IP stack is functioning. If you can ping the default gateway, the local NIC, switch, and basic LAN path are probably fine. If you can reach an IP address on the internet but not a website name, DNS is the likely problem.
- Local layer: NIC status, cable, Wi-Fi association, IP assignment
- Gateway layer: routing off the subnet, default gateway, VLAN path
- DNS layer: hostname to IP translation
- Path layer: hops, latency, and packet loss beyond the first router
“Good troubleshooting is directional.” First prove the device can talk locally, then prove it can leave the subnet, then prove it can resolve names and traverse the path to the destination.
That approach lines up with structured diagnostic thinking used across the industry, including the NIST Cybersecurity Framework and the CISA emphasis on identifying and containing technical faults quickly. It is simple, but it works.
Key Takeaway: If you can isolate where communication stops, you can fix the problem faster. That is the real value of network troubleshooting commands.
Ping: The First Command to Test Connectivity
Ping is the first command most technicians reach for because it answers a basic question: can this host reach another host over the network? It uses ICMP Echo Request and Echo Reply messages to measure whether traffic gets through and how long it takes.
The command is useful because it gives immediate signal. A successful ping means the target is reachable at the IP layer. A timeout means traffic is being dropped somewhere. A partial response with high latency or packet loss points to congestion, wireless interference, weak signal, overloaded devices, or filtering in the path.
What to Test First with Ping
Start with ping 127.0.0.1. That tests the local loopback address and confirms the local TCP/IP stack is alive. If that fails, the problem is on the machine itself, not the network. Next, ping the machine’s own IP address, then the default gateway, and finally a remote IP address such as a public DNS server or a known server on another network.
- 127.0.0.1 – verifies local TCP/IP stack
- Local IP address – checks the adapter and local protocol binding
- Default gateway – confirms the device can leave the subnet
- Remote IP address – tests external reachability without DNS
This matters for the common exam scenario where pings to the local wireless router are successful but pings to a server on the internet are unsuccessful. which cli command could assist the technician to find the location of the networking problem? A path-focused command like tracert or pathping helps identify where traffic stops leaving the local network.
How to Read Ping Results
Reply from means the target responded. Request timed out means the ICMP reply did not return. Destination host unreachable often means a routing problem, bad gateway, or an interface that cannot reach the next hop.
On a healthy wired LAN, latency is usually low and stable. On Wi-Fi, some variation is normal, but spikes and packet loss often point to interference, weak signal, or a faulty access point. For remote systems, consistent packet loss can also indicate ISP issues or congestion farther upstream.
Pro Tip
Always ping by IP address first before you test by hostname. That separates pure connectivity problems from DNS problems in seconds.
For a deeper official view of how protocols behave at the network layer, see the Cisco® documentation and the ICMP-related material in the IETF RFC library.
Using IPConfig to View and Repair IP Settings
ipconfig is one of the most important Windows commands for A+ troubleshooting. It shows how the computer is configured on the network and helps you spot problems that ping alone cannot explain. If a device has the wrong IP address, the wrong subnet mask, or no default gateway, it may still talk locally but fail everywhere else.
Use ipconfig when a user reports no connectivity, limited connectivity, or can reach local resources but not remote sites. The command gives fast visibility into the adapter’s current configuration, and ipconfig /all goes deeper by showing DHCP status, physical address, DNS servers, and lease details.
What the Main Switches Do
- ipconfig – shows basic IP address information
- ipconfig /all – displays full adapter and DHCP details
- ipconfig /release – drops the current DHCP lease
- ipconfig /renew – requests a fresh DHCP lease
- ipconfig /flushdns – clears the local DNS resolver cache
These switches solve real problems. If a laptop picks up a bad lease, /release and /renew may force it to obtain the correct address, gateway, and DNS server. If the device cached an old DNS record after a server migration, /flushdns can remove stale results that point users to the wrong destination.
Common Problems ipconfig Helps Expose
One common issue is a 169.254.x.x address. That usually means the system failed to get a DHCP lease and self-assigned an APIPA address. In that case, the device can talk to nothing beyond the local link, which fits the pattern of local access working while everything else fails.
Another common issue is a wrong or missing default gateway. That can happen after a bad manual configuration, a DHCP scope problem, or a router outage. Without a gateway, the host may still reach other devices on the same subnet, but it cannot route traffic to other networks.
The official reference for Windows networking commands is Microsoft Learn. That is the right source for switch behavior and syntax.
Note
If ipconfig /all shows the wrong DNS server, do not waste time on browser settings. Fix the network configuration first.
Netstat for Monitoring Active Connections and Ports
netstat is the command you use when you need to see active connections, listening ports, and protocol statistics. It is especially useful when an application cannot connect, when a suspicious service is listening unexpectedly, or when you need to confirm that traffic is actually reaching a destination.
For support work, netstat helps answer questions that ping cannot. Ping tells you whether a host is reachable. Netstat tells you what ports are open locally and what connections the machine currently maintains.
How to Use the Most Helpful Options
- netstat -a – shows all active connections and listening ports
- netstat -an – shows numeric addresses and ports for faster analysis
- netstat -b – shows the executable using each connection, when run with elevated privileges
netstat -a is useful when you want to know whether a server is listening on the right port. netstat -an is faster to read because it skips name resolution, which matters on a broken DNS system. netstat -b helps tie a connection back to a specific application, which is useful when a program is not connecting or when malware is suspected.
Practical Examples
Suppose a line-of-business app cannot connect to a database. Netstat can show whether the client actually established a session to the database port, such as 1433 for SQL Server or another application-specific port. If there is no outbound session, the issue may be local firewall rules, endpoint security, or incorrect server settings.
Suppose a workstation shows an unexpected listening port. That could point to a background service you did not expect, a misconfigured server role, or malicious software. In those cases, netstat supports the next step, which might be task inspection, service review, or endpoint security checks.
For official Windows command syntax, use Microsoft Learn. If you are correlating ports with common application behavior, IANA service names and port numbers is the authoritative reference.
“If ping proves reachability, netstat proves communication state.” That distinction matters when the problem is application-specific rather than general network failure.
PathPing for Route and Packet Loss Analysis
pathping combines route discovery and packet-loss measurement. It is more informative than ping when a network path is unstable, because it helps you identify not just whether the destination is reachable, but where loss appears along the route.
This command is useful for intermittent problems, slow cloud access, remote office complaints, and issues that seem to happen “sometimes.” Those are the cases where a single ping can be misleading. A device may respond once and fail the next minute. Pathping gives a better view of the full path.
Why PathPing Is Different from Ping
Ping checks one target. Pathping tests each hop along the way, then analyzes packet loss over time. That makes it valuable when a technician needs to distinguish between a problem on the local router, a firewall, an ISP segment, or a remote network.
- Send traffic toward the destination
- Discover the route hop by hop
- Measure loss on each hop over time
- Identify the segment where trouble starts
That process can explain why users can reach some cloud services slowly while other sites work normally. It can also reveal whether packet loss starts inside the office, at the edge router, or farther upstream.
How to Interpret the Output
Do not panic if some intermediate hops do not reply. Many routers deprioritize ICMP responses. What matters is the pattern. If early hops are clean and later hops show loss, the issue is probably beyond your local network. If the first or second hop shows loss, focus on the device, switch, wireless link, or edge router.
For official guidance, Microsoft documents pathping in its Windows command reference on Microsoft Learn. For cloud and hybrid environments, that diagnostic approach aligns well with operational thinking used in the AWS® documentation and enterprise network troubleshooting practices.
Warning
Pathping takes time because it measures loss over multiple probes. Do not stop it too early or you may miss the actual failing hop.
Traceroute and Route Discovery Concepts
Traceroute on Windows is typically spelled tracert. On Linux and many network devices, the command is usually traceroute. The purpose is the same: show the hop-by-hop path from the source to the destination.
This is a core troubleshooting tool when traffic reaches the local router but fails after that. It helps you see whether the path leaves your network, whether a firewall blocks a segment, or whether an upstream router is sending traffic on a detour.
How Route Tracing Complements Ping
Ping tells you whether a destination answers. Tracert tells you where the path goes. That difference is important when a user says, “I can browse internal sites but not a vendor portal.” If tracert dies at the first hop, the issue is local. If it goes several hops and then fails, the problem is probably upstream.
Route tracing also helps with performance complaints. If traffic takes an odd path through multiple regions or network segments, the result can be slow downloads, laggy SaaS access, or unstable remote desktop sessions.
The common troubleshooting question often looks like this: a technician is troubleshooting a network connectivity problem. Pings to the local wireless router are successful but pings to a server on the internet are unsuccessful. which cli command could assist the technician to find the location of the networking problem? The best fit is route tracing, because it identifies the last reachable hop.
Microsoft’s official command reference for tracert is available on Microsoft Learn. For broader routing concepts, Cisco’s network documentation is also useful at Cisco®.
Nslookup and DNS Troubleshooting
Many “the internet is down” calls are actually DNS failures. The network may be working fine, but the client cannot translate a hostname into an IP address. That is why nslookup is one of the most valuable commands in your toolkit.
DNS problems often show up as websites that never load, secure portals that time out, or internal servers that work by IP address but not by name. In those cases, the browser is fine, the connection may be fine, and the name resolution layer is the real issue.
What Nslookup Tells You
nslookup queries DNS directly. It shows which server answered and what IP address it returned. That makes it easy to compare expected results with what the client is actually getting. If the answer differs from what you expect, the problem may be a stale record, bad DNS server, split-brain DNS, or an outdated cache.
- Run
ipconfig /allto confirm the configured DNS server - Run
nslookup hostnameto see what address is returned - Compare the result with the known correct record
- If needed, run
ipconfig /flushdnsto clear local cache
This is where the earlier query matters: a user is having problems connecting to other computers using hostnames. which of the following commands will best help you troubleshoot this problem? The best troubleshooting command is typically nslookup, because it directly tests name resolution.
For authoritative DNS behavior and record types, see Cloudflare’s DNS overview for a practical explanation and IANA for standards-related naming and delegation references. For Windows-specific command syntax, use Microsoft Learn.
Key Takeaway
If a device can ping an IP address but not a hostname, suspect DNS before anything else.
Arp and Local Network Address Resolution
ARP, the Address Resolution Protocol, maps an IP address to a MAC address on the local network. That matters because devices do not actually send Ethernet frames to IP addresses. They send them to hardware addresses learned through ARP.
When local communication fails, ARP can help you determine whether the problem is on the same subnet. If a machine cannot resolve a neighbor’s MAC address, it may not be able to talk to that device even if both appear to have valid IP settings.
How arp -a Helps
arp -a displays the current ARP cache. This lets you verify which IP-to-MAC mappings the device has recently learned. If the cache contains an unexpected mapping, that may point to a duplicate IP address or the wrong device answering on the LAN.
- Duplicate IP address – one host may overwrite another host’s ARP entry
- Wrong MAC mapping – traffic may go to the wrong device
- Empty or stale ARP cache – local communication may not be established cleanly
ARP issues usually stay within the local subnet, so they are especially useful when a user can reach nearby devices but not a specific local server, printer, or file share. If the issue is broader than that, the problem is probably routing, DNS, or an upstream firewall.
For protocol details, the IETF is the best standards source. For Windows command syntax, use Microsoft Learn.
One useful pattern: if two devices on the same subnet cannot see each other, but both can reach the gateway, the issue may be switch port isolation, VLAN mismatch, local firewall settings, or ARP confusion on the LAN.
Putting the Commands Together in a Logical Troubleshooting Sequence
The real value of these commands is not using them one at a time. It is using them in the right order. A strong sequence reduces guesswork and helps you isolate exactly where the break happens.
Start local, then move outward. If you skip straight to remote tests, you waste time and may miss the obvious issue on the device itself. That is why ping, ipconfig, and nslookup should usually come before pathping, netstat, and arp.
A Practical Sequence You Can Reuse
- Check local configuration with
ipconfig /all - Test the loopback with
ping 127.0.0.1 - Test the default gateway with
pingto the router - Test a remote IP address to bypass DNS
- Test name resolution with
nslookup - Trace the route with
tracertorpathping - Check active sessions with
netstat - Inspect local layer-2 resolution with
arp -a
Example Workflows
No connectivity: If the device has a 169.254.x.x address, fix DHCP first. If the gateway is missing, correct the network configuration. If ping to the gateway fails, suspect cabling, Wi-Fi, switch port, or adapter problems.
Slow connectivity: If ping works but latency spikes, check wireless interference, duplex mismatch, congestion, or packet loss with pathping. If the browser is slow only on names, DNS may be overloaded or misconfigured.
Website-specific access issues: If IP ping works but the hostname fails, use nslookup. If the hostname resolves but the site still fails, use tracert/pathping to see whether the route or a firewall is blocking the path.
Document what you found. A short support note like “gateway reachable, remote IP unreachable, tracert stops after first hop” is more useful than “network issue.” That makes escalation faster and keeps the next technician from repeating your work.
For broader operational discipline, the approach fits well with guidance from the NIST Information Technology Laboratory and workforce frameworks such as NICE.
CompTIA A+ Exam Tips for Network Command Questions
CompTIA A+ questions usually do not ask you to memorize commands in isolation. They test whether you can match the command to the symptom. That means you need to know what each tool reveals, what its switches do, and when it is the best first step.
Expect scenarios that mix up DNS, routing, and local connectivity. A common distractor is assuming that a website failure always means DNS. Another is assuming that if local resources work, the computer is fully healthy. It may only be healthy inside the subnet.
What to Memorize for the Exam
- Ping – reachability and latency
- ipconfig – IP configuration, DHCP, DNS, gateway
- netstat – active connections and listening ports
- pathping – route plus packet loss analysis
- tracert – hop-by-hop route discovery
- nslookup – DNS name resolution
- arp – IP-to-MAC mapping on the local network
Memorize the command by the problem it solves. If the issue is hostname resolution, think nslookup. If the issue is leaving the subnet, think gateway and tracert. If the issue is local communication, think ARP or IP configuration. If the issue is application ports, think netstat.
It also helps to know the Windows command reference pages on Microsoft Learn. For CompTIA exam objectives, use the official CompTIA® A+ certification page as your baseline for what may be tested.
“The exam rewards process, not random tool use.” If you can explain why you chose a command, you are usually on the right track.
CompTIA Cloud+ (CV0-004)
Learn practical cloud management skills to restore services, secure environments, and troubleshoot issues effectively in real-world cloud operations.
Get this course on Udemy at the lowest price →Conclusion
Mastering core network troubleshooting commands is one of the fastest ways to improve both A+ exam performance and day-to-day support skill. These commands turn vague user complaints into concrete evidence you can work with.
Ping, ipconfig, netstat, pathping, tracert, nslookup, and arp form a practical toolkit for checking local settings, gateway reachability, DNS resolution, route path, and local address mapping. Used in sequence, they help you find the break instead of guessing where it might be.
If you are preparing for CompTIA A+, practice these commands in a safe lab until you can recognize the output quickly. Build small test cases: broken DNS, wrong gateway, duplicate IP, blocked port, and no DHCP lease. The faster you can identify the pattern, the faster you will solve the real problem.
Structured troubleshooting beats random guesswork every time. Start local, move outward, document what you find, and use the command that matches the symptom.
CompTIA® and A+™ are trademarks of CompTIA, Inc.

