Exercise 3: TCP/IP

What to Do How to Do It
Open the MS-DOS prompt
  • Windows 2000: Click Start, Programs, Accessories, Command Prompt
  • Windows 98: Click Start, Programs, MS-DOS Prompt
Display Windows IP information
  1. Type ipconfig /? to view command options
  2. Type ipconfig to view your IP address, subnet mask and default gateway
  3. Type ipconfig /all to view complete information
  4. Type winipcfg to run the Windows IP configuration utility
Display TCP/IP network connections
  1. Type netstat /? to view command options
  2. Type netstat -a to view all connections and listening ports
  3. Type netstat -r to display the routing table
Look up domain and host names and IP addresses
  1. Type nslookup to start the nameserver lookup program
  2. Type help to view a list of commands
  3. Type nslookup hostname to find the IP number of a host machine, e.g.
    • home.umu.ac.ug
    • yourcomputername.umu.ac.ug
    • www.yahoo.com
    • www.microsoft.com 
  4. Type nslookup IPnumber  to see if an IP number has a host name
Check if a host machine is reachable
  1. Type ping to view command options
  2. Type ping IPnumber where IPnumber is the machine to test, e.g.
    • 127.0.0.1 is the loopback address (for self-testing)
    • 192.168.22.1 is the default gateway
    • 192.168.22.2 is the proxy server
    • 192.168.22.28 is a web server
    • 192.168.22.30 is the mail server
    • 192.168.22.75 is my IP address
Trace the route from your machine to a host machine
  1. Type tracert to view command options
  2. Type tracert IPnumber
Test router and link delays on a path to a machine
  1. Type pathping to view command options
  2. Type pathping IPnumber
Display the local routing table
  1. Type route to view command options
  2. Type route print
View the local Address Routing Protocol cache
  1. Type arp -a
  2. Ping the IP address of another computer in the classroom
  3. Type arp -a
Connect to a remote machine and transfer files using command-line FTP
  1. Type ftp to view the ftp> prompt
  2. Type open ftp.microsoft.com (or another FTP site)
  3. For the username, type anonymous
  4. For the password, type your e-mail address
  5. Type help to display a list of available commands
  6. Type help command for information about a command
  7. Type ls or dir to list files in the current folder
  8. Type cd foldername to go into a folder
  9. Type get filename to download a file to your computer
  10. Type bye to close the FTP session and exit FTP
  11. Type dir to verify that the file has been downloaded to your computer
Connect to a remote machine and transfer files using FTP and a Web browser
  1. Type a FTP address in the browser address window
    e.g. ftp://ftp.microsoft.com
  2. Click a folder to open it
  3. Click a file to download it, and specify a location to save the downloaded file
Locate a Telnet site using a Web browser
  1. Go to http://www.internetdatabase.com/telnet.htm
  2. Browse for a Telnet site that you can access
Connect to a remote machine using Telnet
  1. Type telnet to view the Microsoft Telnet> prompt
  2. Type help to view available commands
  3. Type open IPnumber or open hostname
    where hostname is the domain name of a computer
  4. Type quit to exit telnet
Connect to a remote machine using gopher and a Web browser
  1. Type a gopher address in the browser address window
    e.g. gopher://gopher.micro.umn.edu/
  2. Click a folder or file to open it