AP Networking • CLI evidence • Command selection

Which Network Command Should I Use? Choose the Tool From the Evidence You Need

Do not memorize a fixed command order. Identify the unanswered networking question, choose the command whose output can answer it, interpret the evidence boundary, and let that result determine the next step.

Independent AP Networking resource • 24 free digital flashcards • Updated 2026-09-09
Free command-selection deck: 24 interactive cards on configuration, reachability, path, DNS, ARP, sockets, routes, evidence boundaries, and next-test selection.
Start Flashcards
Decision rule

Command selection begins with a question the current evidence has not answered

The source page has the right foundation: use ipconfig for host configuration, ping for a selected IP-layer checkpoint, tracert/traceroute for visible routed path evidence, nslookup for DNS answers, arp for local IPv4-to-MAC mappings, netstat for local sockets, and route-table tools for forwarding selection. The deeper skill is deciding when each output would actually reduce uncertainty.

High-information command rule: Unknown question → best artifact → bounded interpretation → remaining hypotheses → next discriminating evidence.

A fixed script such as “ipconfig, then ping, then traceroute” can waste time when the prompt has already supplied some of those facts. If the scenario explicitly shows a valid address, correct gateway, successful gateway reachability, and successful remote numeric-IP reachability, repeating those checks adds little. If hostname access alone fails, a DNS query has much greater information value.

Quick chooser

Match the command to the evidence boundary—not to the symptom label

Unanswered questionStrong first artifactWhat it can establishWhat it cannot establish alone
What configuration does this Windows host have?ipconfig /allAddress, mask, gateway, DNS, DHCP/lease stateThat the configured gateway or DNS server is reachable
Does this selected IP return ICMP Echo Replies?pingReachability/RTT evidence for that ICMP testThat TCP/UDP services or DNS work
Which routed points visibly respond toward a destination?tracert / tracerouteVisible path progression and changesThat every silent hop is broken
What answer does a DNS resolver return?nslookupResolver response, address answer, timeout/NXDOMAIN cluesThat the returned service is reachable
Which MAC is associated with a local IPv4 neighbor?arp -aLocal neighbor mapping evidenceRemote server MAC across a router or switch-port location
Is this local host listening or holding a TCP state?netstatLocal socket/listener/connection-state evidenceEnd-to-end firewall or routing health
Which forwarding entry matches a destination?Route table / route commandSelected matching route and next-hop/interface logicNext-hop reachability or return-path success

Swipe horizontally to see the full table.

Host configuration

Use ipconfig when the endpoint's own Layer 3 state is still unknown

ipconfig /all is high-value when the symptom could be explained by the client's assigned address, subnet mask, gateway, DNS server, DHCP state, or lease information. It is especially useful before testing remote dependencies when the endpoint configuration itself has not been established.

Ethernet adapter: IPv4 Address . . . . . : 169.254.33.8 Subnet Mask . . . . . : 255.255.0.0 Default Gateway . . . : DHCP Enabled . . . . . : Yes

This output supports a bounded conclusion: a DHCP-dependent endpoint does not have its expected normal IPv4 configuration. It does not tell you whether the root cause is a DHCP server, exhausted scope, VLAN placement, relay path, link transition, or some other DHCP-path problem. The next test should distinguish those possibilities.

Compare with DHCP scope exhaustion when the evidence suggests configuration delivery rather than general Internet failure.

Reachability

Use ping as a deliberately placed checkpoint, not as a universal health test

A ping target should answer a specific question. Pinging the gateway tests a local Layer 3 checkpoint. Pinging a remote numeric IP tests farther upstream without depending on hostname resolution. Pinging a hostname can add a name-resolution dependency before the ICMP exchange even begins.

Worked sequence: Gateway ping succeeds. Remote numeric IP ping succeeds. The application hostname fails. The first two results make a completely dead local link and total upstream IP failure weaker explanations. A DNS query now has higher information gain than repeating the gateway ping.

Failure is also bounded. ICMP can be filtered, so “no echo reply” is not synonymous with “host down.” If the real requirement is HTTPS, targeted TCP/service evidence may be more meaningful than insisting that ICMP succeed.

Path discovery

Use tracert or traceroute after local forwarding is plausible and the path itself is the question

Path discovery is useful when you need to observe which routed points return responses toward a remote destination. It can expose a changed visible path, a consistent stopping region, or a divergence between a working and failing destination. But it should not replace basic local configuration analysis.

1 1 ms 1 ms 1 ms 10.20.0.1 2 8 ms 9 ms 8 ms 172.16.4.1 3 * * * 4 22 ms 21 ms 23 ms 198.51.100.18 5 29 ms 30 ms 29 ms 203.0.113.40

Hop 3's asterisks do not prove that router is dead because later hops respond. A device may forward traffic while not returning the expected probe response. This is a classic evidence-boundary trap: path visibility and packet forwarding are related but not identical.

DNS evidence

Use nslookup when the resolver's answer is the unresolved dependency

A browser combines too many dependencies to be precise DNS evidence. nslookup lets you ask the resolver directly and distinguish an answer from timeout, NXDOMAIN, or an unexpected record.

> nslookup app.school.example Server: 10.20.0.53 Address: 10.20.0.53 Name: app.school.example Address: 10.80.5.10

If 10.80.5.10 is the expected address, the tested resolution step succeeded. If TCP 443 still fails, do not keep editing DNS. Move toward route/policy/listener/service evidence. Conversely, if a numeric IP works but the DNS query times out, the name-resolution branch becomes much stronger.

This distinction is central to DNS troubleshooting: a correct DNS answer is evidence about naming, not proof of the application behind the returned address.

Neighbor evidence

Use arp for local IPv4 neighbor ownership—not for remote switch-port discovery

arp -a shows local IPv4-to-MAC neighbor mappings known to the host. For a remote IP destination, the client normally frames the packet toward its local next hop, so the ARP entry of interest is the gateway rather than the remote server's MAC address.

Duplicate-IP clue: During an intermittent outage, observers repeatedly see 10.20.4.55 associated with MAC A, then MAC B, while the expected owner has not changed. That is useful conflict evidence. Confirm it across time and observers rather than treating one stale cache entry as conclusive.

To find where a MAC was recently learned in the switched network, combine neighbor information with a switch MAC table. ARP answers “which local IPv4 neighbor maps to which MAC?” while the switch table answers “where was this source MAC recently learned in this VLAN?”

Socket evidence

Use netstat when the unresolved question is local listener or connection state

If a server is supposed to accept TCP/443, checking whether it is actually listening can prevent an unnecessary firewall change. A missing listener is a local service-state problem until evidence shows otherwise. If the listener exists, the investigation can move outward to binding scope, host policy, transit policy, routing, and client-side evidence.

Proto Local Address Foreign Address State TCP 0.0.0.0:443 0.0.0.0:0 LISTENING TCP 10.80.5.10:443 10.20.30.44:53122 ESTABLISHED

A listener on 0.0.0.0:443 is useful local evidence that the service is bound broadly on IPv4. It does not prove every remote client can reach it. An ESTABLISHED entry proves more about that particular connection, but still should not be generalized to every source or policy path.

See the netstat command guide for deeper state and endpoint interpretation.

Route selection

Use route-table evidence when the forwarding decision is the unknown

Route-table analysis starts by matching the destination against candidate prefixes and choosing the longest matching prefix. Then inspect the selected next hop or interface. This answers the forwarding-choice question; it does not complete the end-to-end diagnosis.

10.0.0.0/8 via 172.16.1.1 10.40.0.0/16 via 172.16.2.1 10.40.8.0/24 via 172.16.3.1 Destination: 10.40.8.77 Selected: 10.40.8.0/24 via 172.16.3.1

If 172.16.3.1 cannot be reached on the expected local segment, the route's presence does not rescue forwarding. Likewise, a reachable next hop does not prove downstream return routing or service policy.

Information-gain ladder

Let each successful result move the failure boundary forward

Evidence already suppliedLower-value repetitionHigher-information next question
Valid configuration is shownRun ipconfig againCan the required local/remote checkpoint be reached?
Gateway respondsPing gateway repeatedlyDoes remote numeric-IP forwarding work?
Remote numeric IP worksReset adapterDoes DNS return the expected answer?
DNS answer is correctChange DNS serversIs required TCP/UDP service reachable/listening?
Server listener existsRestart service blindlyDoes host/transit policy permit the exact flow?
Matching route existsDeclare routing healthyIs selected next hop reachable and return path viable?

Swipe horizontally to see the full table.

Differential diagnosis

The same symptom can demand a different command when the prior evidence changes

Case A: “Website fails”

No IP configuration is supplied. Start by establishing endpoint state; ipconfig /all may have more value than remote path discovery.

Case B: “Website fails”

Valid configuration, gateway success, and remote numeric-IP success are supplied, but hostname access fails. nslookup now has much higher information gain.

Case C: “Website fails”

DNS resolves correctly and the server route is reachable, but TCP/443 times out. Listener/socket and policy evidence become more valuable.

Case D: “Website fails”

One client has an established TCP/443 connection while another source subnet times out. Source-specific policy/path evidence becomes more interesting than server restart.

The symptom label did not change. The evidence state did. This is why memorizing “which command goes with which symptom” is weaker than learning which command answers which technical question.

★ Troubleshooting Practice • Which Network Command Should I Use? Choose the Tool From the Evidence You Need

A five-minute warm-up for Which Network Command Should I Use? Choose the Tool From the Evidence You Need

Tomorrow’s opening question can pick up where this page leaves off: ask students to explain the idea in their own words and apply it to a real network. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource
Command traps

Seven common command-selection mistakes and the evidence boundary behind each

MistakeWhy it is weakBetter reasoning
Ping everything firstMay ignore unknown local configurationEstablish the earliest unresolved dependency
Traceroute one hop before gatewayLocal forwarding may already be brokenResolve endpoint/gateway state first
Use browser failure as DNS proofBrowser depends on many layersQuery DNS directly
Use ARP to find remote server MACRouter is the local Layer 2 next hopInspect local gateway mapping
Use netstat as end-to-end proofIt is local socket evidenceCombine with path/policy evidence
Treat route entry as delivery proofSelection is not successful forwardingTest next-hop/path/return evidence
Repeat a successful checkpointAdds little informationMove to the next unresolved boundary

Swipe horizontally to see the full table.

Multi-artifact case

Choose commands as a sequence of shrinking uncertainty

Symptom: client cannot open portal.school.example ipconfig /all: IPv4: 10.30.20.44 Mask: 255.255.255.0 Gateway:10.30.20.1 DNS: 10.30.0.53 ping 10.30.20.1: success ping 10.80.5.10: success nslookup portal.school.example: 10.80.5.10 Server netstat: TCP 0.0.0.0:443 LISTENING Firewall: DENY 10.30.20.0/24 -> 10.80.5.10 TCP/443

Each artifact removes a branch. Configuration is plausible. The gateway responds. The remote server IP responds. DNS returns the expected address. The server is listening. The firewall then supplies direct evidence that the required source-to-destination TCP/443 flow is denied. Running traceroute at this point may be interesting, but it is not the highest-information next step because the policy artifact already explains the required service failure.

After a narrowly scoped policy correction, verify HTTPS from the authorized source and confirm prohibited source scopes remain blocked.

Cross-platform reasoning

Command spelling can change; the networking question should not

Windows commonly uses ipconfig and tracert; other operating systems may expose configuration and path information with different utilities. The durable exam skill is the evidence category: host configuration, selected reachability checkpoint, visible routed path, resolver answer, neighbor mapping, local socket state, or route selection.

CLI & Artifact Lab • 120 Missions

Let students try Which Network Command Should I Use? Choose the Tool From the Evidence You Need for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about Which Network Command Should I Use? Choose the Tool From the Evidence You Need.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features

This prevents command-name memorization from replacing understanding. If a prompt gives you output from an unfamiliar utility but the fields clearly show address, prefix, gateway, and DNS state, interpret the artifact by what it contains. Likewise, a routing artifact should be analyzed by prefix matching and next-hop logic even if the exact display syntax differs.

Verification

The command that finds the problem is not automatically the command that proves the repair

Verification must match the original requirement. If nslookup helped identify a DNS problem but the original requirement was opening a secure web application, a corrected DNS answer is only an intermediate checkpoint. Finish by verifying the application. If netstat exposed a missing listener, restore it and then test the intended remote client path. If a route-table correction was made, verify the actual remote communication and relevant return behavior.

Troubleshooting Exam Practice • Which Network Command Should I Use

Check whether Which Network Command Should I Use? Choose the Tool From the Evidence You Need has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
Verification rule: intermediate artifact repaired → original requirement retested → relevant controls preserved.
AP-style response

Explain why the command is appropriate before interpreting its output

A concise response can follow: Question → Command → Decisive field/result → Bounded inference → Next evidence. Example: “The unresolved question is whether the hostname resolves correctly, so use nslookup. If it returns the expected server address, the tested DNS lookup succeeded; that does not prove TCP/443 works. Next inspect the required service connection or listener/policy evidence.”

This structure turns a command-name answer into technical reasoning and makes it much harder to overclaim from one output.

Premium Artifact Reasoning

Spend less time marking explanations about Which Network Command Should I Use? Choose the Tool From the Evidence You Need

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview
Command-pair reasoning

Some questions are answered best by combining two artifacts rather than demanding too much from one

A single command often establishes only one boundary. Pairing artifacts can connect layers without overclaiming. For example, arp -a can identify the MAC associated with a local gateway IP, while the switch MAC table can show where that MAC was recently learned. nslookup can establish the resolver's answer, while netstat or a targeted service test can address whether the expected transport endpoint exists. A route table can identify the selected next hop, while a neighbor or reachability artifact can test whether that next hop is usable.

First artifactWhat it establishesUseful second artifactWhy the pair is stronger
arp -aLocal IP-to-MAC associationSwitch MAC tableConnects neighbor identity to recent Layer 2 location
nslookupResolver answerSocket/service evidenceSeparates naming success from service availability
Route tableSelected forwarding entryNext-hop reachability/neighbor evidenceSeparates route selection from route usability
netstatLocal listener/connection stateFirewall logSeparates service state from transit policy
pingSelected ICMP checkpointtracerouteAdds visible routed-path evidence when path is still unresolved

Swipe horizontally to see the full table.

Minimal command set

A good troubleshooter often runs fewer commands because each command has a reason

Command count is not a measure of diagnostic quality. Running seven utilities and collecting seven screens of output can produce less useful information than two well-chosen commands. Before pressing Enter, finish this sentence: “I am running this because I still do not know whether _____.” If the blank cannot be filled with a precise technical question, the command may be premature.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach Which Network Command Should I Use? Choose the Tool From the Evidence You Need as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples

After the output arrives, finish two more sentences: “This result supports _____” and “This result does not yet prove _____.” That simple discipline turns command-line practice into evidence interpretation. It also makes it easier to choose the next test because the remaining unknown is explicit rather than hidden inside a pile of output.

Example: “I am running nslookup because I do not know whether the configured resolver returns the expected IP for the application name. The expected answer supports successful tested name resolution. It does not prove TCP/443 is permitted or listening. The next evidence should address the required service path.”
Time-order evidence

Snapshot commands become stronger when you know when the symptom occurred

Many command outputs are snapshots. An ARP entry may be stale. A TCP state can change in seconds. A route may have changed after a failure. A successful ping now may not describe the outage five minutes earlier. When the problem is intermittent, record timestamps and compare the command output with the actual failure window.

This is especially important when interpreting connection states and neighbor mappings. Repeated observations can reveal a pattern that one snapshot hides: an IP alternating between MAC addresses, a TCP connection repeatedly stalling in the same state, or a path changing during a specific event. The command is the same, but time correlation increases the information value of its output.

Free digital flashcards

24 command-selection flashcards built around evidence, not memorization

Filter the deck by command or reasoning category. The questions deliberately ask what an output proves, what it does not prove, and which command has the greatest information gain next.

All topics
Click or press Enter/Space to reveal.
Then name the next unresolved dependency.
0 seen•24 cards
Continue practicing

Move from choosing the command to interpreting realistic output