You are on page 1of 2

Table 12.

1 Useful Basic TCP/IP Diagnostic Commands

Command

Description

arp -a

Displays the MAC-to-IP address translation table.

netstat -rn

Shows TCP/IP routing table (numerically).

netstat -an

Shows all TCP/IP sockets in use (numerically) for all clients and servers.

ping hostname or address

Checks basic IP connectivity with

hostname or address.

tracert hostname Traces the route that a packet takes from


or address the current workstation to hostname or

address. Shows each router that the


packet goes through on its way to

hostname or address.

Table 12.2 More Useful Network Diagnostic Commands

Command

Description

netsh

Interactive command-line utility that allows you to list and change network-layer configuration. (Two hints: First, type int

ip when you first enter the program; these


options are the most useful day-to-day. Second, typing ? at any time shows available options.)

net session

Shows all Windows networking sessions (shares and so forth) active on this machine.

net share

Lists all Windows shares that are available on this machine.

* service.vbs /L /S monster

Shows status of all Windows services on the "monster" server.

* service.vbs

* netset /display

Shows a list of network components (that is, network protocols and basic services) that are associated with network interfaces.

* srvinfo //server

Connects to a remote or local server and shows uptime, protocols, network cards, service packs, hotfixes, drive space available, and so on.

You might also like