π§ͺ Diagnostic Commands
Diagnostic commands are the first tools used by help desk engineers and network administrators. They help identify where the problem is before touching cables or configurationsβespecially in networks using Cisco Systems devices.
π’ 1οΈβ£ ping β Connectivity Test
π What Is ping?
ping checks:
- Is the destination reachable?
- Is the network path working?
- How long packets take (latency)
π§ Syntax
ping google.com
ping 8.8.8.8
π§ͺ Example Outputs
Reply from 8.8.8.8: time=23ms TTL=118
- β Network reachable
- β DNS works (if domain name used)
Request timed out.
Possible reasons:
- Device offline
- Firewall blocking ICMP
- Wrong IP address
- Network down
π§ Troubleshooting Logic with ping
| Ping Target | Meaning |
|---|---|
| 127.0.0.1 | TCP/IP stack OK |
| Own IP | NIC working |
| Gateway | LAN OK |
| Internet IP | Routing OK |
| Domain fails | DNS issue |
π₯οΈ 2οΈβ£ ipconfig / ifconfig / ip β IP Information
These commands display:
- IP address
- Subnet mask
- Default gateway
- DNS servers
π§ Commands by OS
Windows:
ipconfig
ipconfig /all
Linux:
ifconfig
ip addr
macOS:
ifconfig
π§ͺ Example (Windows)
IPv4 Address : 192.168.1.10
Subnet Mask : 255.255.255.0
Default GW : 192.168.1.1
- β Correct IP β Local network works
- β Missing gateway β No internet
π§ Common Problems Found
- 169.254.x.x β DHCP failed
- Wrong subnet mask β Local communication fails
- Wrong gateway β Internet fails
π§ 3οΈβ£ tracert / traceroute β Path Discovery
π What Does It Do?
Shows every router (hop) a packet passes through to reach a destination.
π§ Commands
Windows:
tracert google.com
Linux / macOS:
traceroute google.com
π§ͺ Example Output
1 192.168.1.1
2 10.10.0.1
3 ISP Router
4 google.com
β Helps identify where traffic stops
β Asterisk (*) Meaning
* * *
- Router not responding
- Firewall blocking ICMP
- Packet dropped
π 4οΈβ£ nslookup β DNS Testing Tool
π What Is nslookup?
nslookup checks DNS resolution and shows which IP address a domain resolves to.
π§ Syntax
nslookup google.com
π§ͺ Example Output
Name: google.com
Address: 142.250.192.14
β DNS working correctly
β DNS Failure Example
DNS request timed out
- DNS server down
- Firewall blocking UDP 53
- Wrong DNS configured
π₯ 5οΈβ£ Firewall Impact on Results
Firewalls can affect command results even when the network is healthy.
π« How Firewalls Affect Commands
- ping: ICMP blocked β Request timed out
- tracert: Hop replies blocked β * * *
- nslookup: DNS blocked β Name resolution fails
Always consider security rules
π§ Real Help Desk Troubleshooting Flow
- ipconfig β Check IP & gateway
- ping 127.0.0.1 β TCP/IP check
- ping gateway β LAN check
- ping 8.8.8.8 β Routing check
- nslookup google.com β DNS check
- tracert β Path issue
π Diagnostic Commands β Quick Comparison
| Command | Purpose |
|---|---|
| ping | Reachability |
| ipconfig / ifconfig | IP details |
| tracert / traceroute | Path discovery |
| nslookup | DNS resolution |
| Firewall | May block results |