UEU-co logo


Previous Page Next Page

Checking IP Configurations and Server Connectivity

Windows Server 2008 provides command-line tools that can help you check IP configurations and connectivity. For example, ipconfig can be used to both check and renew the IP configuration on a Windows server. The netstat command is used to list of the active TCP and UDP connections on your server. The ping command is used to check a computer’s connection to any device on a network that is configured with an IP address.

Commands such as ipconfig, netstat, and ping are executed at the command prompt. To open a command prompt, select Start and then select Command Prompt.

Using ipconfig

You can check IP configurations on your Windows Server 2008 from the command line by using the ipconfig command. ipconfig/all shows the information for all network interfaces on the server and provides more details than ipconfig. Figure 7.6 shows the results of the ipconfig/all command.

Figure 7.6. The ipconfig/all command.

[View full size image]

Did you Know?

On servers or clients that receive IP addresses dynamically, you can use the ipconfig command to release and renew the IP address assignment. Use ipconfig/release when you want to release the old address lease. Use ipconfig/renew to renew an IP address lease. Dynamic assignment of IP addresses is discussed in Hour 16.

Using netstat

netstat displays a list of the active TCP and UDP connections on your server (TCP is the Transport Control Protocol and the TCP in TCP/IP; UDP is also a connectionless transport protocol). At the command prompt, type netstat/a and press Enter. Figure 7.7 shows the results of this command.

Figure 7.7. Netstat shows the TCP and UDP connection on the server.

[View full size image]

The netstat command provides a number of switches. For example, the –s switch displays statistics by protocol in the TCP/IP stack, including TCP, UDP, and IP. The –e switch (which can be combined with the –s switch) displays ethernet statistics, including the number of bytes and packets the computer has sent and received.

Using ping

Another useful command is ping. It can be used at the command line to send a data packet to any IP address on the network and thereby check connectivity. For example, to see whether your server is connecting to a computer with an IP address, you would type ping 192.5.6.

If the ping packet reaches the other computer, you get an echo response letting you know that the computer is out there. If it does not reach the computer, you get a request time out, meaning the packet failed to reach the specified destination and did not “bounce” back.

Did you Know?

You can also use ping with IPv6 addresses. Type the IPv6 address after the ping command at the command prompt.

The ping command also provides options that you can specify, such as the number of echo packets to send and the time to wait for a reply. For example, ping –n count is used to specify the number of echo requests that are sent, where count is the number of requests.

Did you Know?

Commands such as netstat and ping provide a number of different switches and options. To view the switches for a particular command, type the command, followed by –h (or -?). A list of the different options is then provided in the command window.

Previous Page Next Page

Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.


apply_nowPepperstone Group Limited