Small Business Network Setup · Foundation · Path B
Command-Line Diagnostics: ipconfig, ping and tracert
Use ipconfig, ping and tracert to check a computer's network settings, test connectivity step by step and locate where a connection fails.
What you need
Cisco Packet Tracer (free with a Cisco Networking Academy account) on a computer, and the Academy's network lab equipment (router, managed switch, wireless access point) where available. All work is done in the simulator or the isolated lab, never on a live network without written authorisation.
In this lesson you will
- Read a device's settings with ipconfig
- Test connectivity in a logical order
Key concepts
ipconfigpingtracertloopbackconnectivity testlogical troubleshooting
The lesson
ipconfig /all shows a Windows computer's IP address, mask, gateway, DNS and whether DHCP is used. An address starting 169.254 means the computer did not get one from DHCP.
Test from near to far: ping the computer itself (127.0.0.1), the default gateway, an internet address (8.8.8.8), then a name (example.com). The first failure shows where to look.
tracert lists the routers on the way to a destination, showing where traffic stops.
Step by step
- Run ipconfig /all and note the four key settings.
- Ping the loopback, gateway, an internet address and a name.
- Run tracert to a website.
- Disconnect a cable in the simulator and repeat to see what changes.
Practice activity
Complete a diagnostics worksheet for a working and a deliberately broken network in the simulator.
Expected result: Correct identification of where each broken connection fails.
Common mistakes
- Testing a website first and guessing
- Ignoring the DNS step when an address works but a name does not
Check your understanding
-
What does an address beginning 169.254 tell you?
Show answer
The computer did not receive an address from DHCP.
-
Why test from near to far?
Show answer
The first failing step shows where the problem is.
Further learning
Projects are instructor-guided: an instructor sets milestones, checks your work and gives feedback, online or in person. Self-study of the public lessons does not lead to a certificate. Enrolment and fees follow the Academy's existing policies — contact the Academy.