Operations 12 min read

Master Windows Network Troubleshooting: Ping, ARP, Tracert & Route Commands Explained

This guide explains how to use Windows network troubleshooting commands—ping (including -t, -a, -n, -l options and batch ping), arp (display, add, delete), tracert (basic usage and options), and route (view, add, delete)—to diagnose connectivity issues, resolve IP conflicts, and manage routing tables.

Open Source Linux
Open Source Linux
Open Source Linux
Master Windows Network Troubleshooting: Ping, ARP, Tracert & Route Commands Explained

1. Ping command

Ping is a powerful TCP/IP tool used to test network connectivity, measure response time, resolve domain names to IP addresses, and infer the remote operating system from the TTL value.

Common usage: ping <IP_or_hostname> – basic connectivity test. ping -t <IP> – continuous ping until stopped (Ctrl+C). ping -a <IP> – resolves the IP to the host name. ping -n <count> <IP> – send a specific number of echo requests. ping -l <size> <IP> – send packets of a specified size (default 32 bytes, max 65500 bytes). ping -r <count> <IP> – record the route of the packets (max 9 hops).

Example output fields:

bytes : size of the packet.

time : round‑trip time; smaller values indicate faster connection.

TTL : Time‑To‑Live; helps identify the remote OS.

Batch ping a whole subnet: for /L %D in (1,1,255) do ping 10.168.1.%D This pings every address from 10.168.1.1 to 10.168.1.255.

2. ARP command

ARP (Address Resolution Protocol) maps an IP address to a MAC address on IPv4 networks. arp -a – display the current ARP cache. arp -s <IP> <MAC> – add a static ARP entry. arp -d <IP> – delete a specific ARP entry (or arp -d * to clear all).

Static ARP entries are useful to bind a device’s MAC address to a fixed IP, preventing IP conflicts.

3. Tracert command

Tracert (trace route) shows the path packets take to reach a destination.

Basic syntax: tracert <destination> Options: -d (do not resolve host names), -h <max_hops>, -w <timeout_ms>.

Examples illustrate hop counts and how to limit displayed hops.

4. Route command

The route utility displays and modifies the IP routing table. route print – show current routes.

route add <destination> mask <mask> <gateway> metric <metric> if <interface>

– add a route. route delete <destination> – remove a route.

By configuring the routing table, you can direct traffic from specific subnets through chosen gateways, enabling simultaneous use of wired and wireless networks without unplugging cables.

Network Troubleshootingtracertroute commandWindows networkingping commandarp commandbatch ping
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.