Type the command tracert –d google.com. This runs the same trace, but it does Type the command pathping google.com. Pathping is similar to tracert but it will

112 | Lesson 5

5. Type the command pathping –n google.com. This option prevents name resolution

in the way that tracert –d does. This can display the results faster than the standard pathping command. ANALYZE DOMAIN NAMES WITH NSLOOKUP GET READY. In this exercise, we will analyze DNS information with the Nslookup command. Nslookup displays information about DNS names and their corresponding IP addresses, and it can be used to diagnose DNS servers. An Internet connection is required.

1. Type the command nslookup google.com and view the results. You should see

google.com’s corresponding IP address. Try the command with a few other well-known Web site domain names.

2. Type the command nslookup. This should bring you to the nslookup shell where you

can enact more commands. 3. Press the ? key and press Enter. This displays the various commands you can use in the nslookup shell.

4. Type exit to get out of the nslookup shell. We’ll work with this command in more

depth during Lesson 6. MAKE NETWORK CONNECTIONS WITH FTP AND TELNET GET READY. In this exercise, we will make connections to remote systems with FTP and Telnet. An Internet connection is required. 1. Type the command ftp ? and view the results. FTP stands for file transfer protocol. It is an application layer protocol as well as an application. The FTP command is used in the command prompt to connect to FTP servers. Figure 5-17 Pathping Implementing TCPIP in the Command Line | 113 2. Connect to an FTP server:

a. Type the command ftp ftp6.ipswitch.com. This should make a connection to the

IPswitch FTP server.

b. When the FTP server prompts for a user username, type anonymous.

c. When prompted for a password, press the Enter key, as no password is necessary.

Once logged in, your screen should look similar to Figure 5-18. d. Press the ? key to display a list of commands you can use in the FTP shell. Figure 5-18 FTP connection

3. Type the dir command. This shows a list of folders and files within your current

directory, similar to how DOS would display them.

4. Change to the ipswitch directory by typing cd ipswitch.

5. Type dir again. Examine the folders inside.

6. Change to the manuals directory by typing cd manuals. Of course, longer path names

can be used to save time if you know where you are going.

7. Download one of the manuals, such as by typing get wsftp80.pdf. The get command

downloads the file and stores it in the working directory in Windows 7. Other versions of Windows store the file in the root of C: by default. This can be changed with the lcd command. View the manual in the root of C:. It should be a manual for WS_FTP Pro version 8 written in English. You can also use the mget command to grab multiple files at once. And, if you want to upload a file, the put and mput commands can do this one at a time or more than one at a time, respectively. Sometimes, this might be your only option for connecting via FTP. However, if you can use a third-party GUI-based program, you will be able to work much faster. 8. When finished, type quit to end the FTP session and return to the C:\ prompt. Although FTP is used to transfer files, Telnet is used to take control of a remote computer. Basically, a network administrator connects to a remote computer, server, router, or switch by typing telnet [IPAddress]. This would either display the C:\ prompt of the remote system if connecting to a Windows computer, or a menu-based system if connecting to a router or switch. Telnet is an older, out-of-date protocol, and as such, it should be replaced with a more secure program such as SSH. Newer operating systems don’t have the Telnet service installed by default, and they do not allow the use of the command in the Command Prompt. ANALYZE AND CONFIGURE TCPIP WITH NETSH AND ROUTE In this exercise, we will analyze and configure our system with the netsh and route commands. Netsh is a built-in command-line scripting utility that enables you to display and modify the network configurations of the local computer. Netsh commands tend to be rather long and in depth, so the utility gives you the option to save configuration scripts for later use. 1. Type the command netsh ? and view the results. This help file shows the basic syntax for the netsh command and the first-level commands that can be run within the netsh shell.