CTEC1767 Lab #2 ...... IPCONFIG, PING, TRACERT, , ARP AND

CLASS DISCUSSION: IP ADDRESSES, ROUTING.

The class notes cover the following information in detail but before we the lab we must be sure to understand:

Ø IP classes Ø IP addressing Ø Subnet masks Ø Routers Ø Static and dynamic routing

BEFORE YOU START

Make sure that the Ethernet cable is connected to the CIT network and that you boot into the Open version of Windows 7.

If you are completing this lab home or in the College outside of L17, just use your regular Internet connection.

For this lab be sure that your PC is configured to use automatic IP addressing and DNS. Also, be sure you are connected to the Internet. Check by starting your browser and connecting to any web site outside of the College.

1. Run the “ipconfig /all” command and record the following information. After you have recorded the information we will discuss what each item means.

a. DNS server(s):

b. Adapter (or physical) address:

c. IP address:

d. Subnet mask:

e. :

ctec1767-2018S-lab2-ipconfig_route_netstat.docx Page 1 of 5

CTEC1767 Lab #2 ...... IPCONFIG, PING, TRACERT, ROUTE, ARP AND NETSTAT

2. The netstat command can be used to view information such as the routing table, Ethernet statistics and currently active connections.

a. Type netstat /? at the command prompt.

b. What command would you use to display current Ethernet statistics on a per protocol basis?

i. Run this command and record the number of IP packets received.

c. What command would you use to display the current TCP stats?

i. Run this command and record the number of segments sent

d. What command would you use to display all current connections and listening ports?

3. Ping:

The ping command can be used to test the connection between and the existence of two devices on an IP network. Ping will return the round trip from your device to the device being pinged and back again.

a. Ping a local device and record the time. A local device on the CIT network has an IP address beginning with 192.168.2 or 192.168.3.

b. Ping an external (remote) device and record the time. An external device has an IP address not 192.168.2.0 (CIT) network. Your favourite web site will do.

ctec1767-2018S-lab2-ipconfig_route_netstat.docx Page 2 of 5

CTEC1767 Lab #2 ...... IPCONFIG, PING, TRACERT, ROUTE, ARP AND NETSTAT

4. .

a. The tracert command can be used to trace the route from your PC to another host on the Internet.

b. Tracert actually sends a ping packet with incrementing TTL values. Since each router along the route will reply when the TTL expires, the incrementing value of the TTL ensures that each router will reply until the destination is reached.

c. At a dos prompt enter “tracert web.vaxxine.com” i. How many routers are between your PC and the web.vaxxine.com host?

ii. Looking at the host names of the routers in the tracert output try to determine where the router furthest from you is located:

d. At at dos prompt enter “tracert www..com” i. How many routers are between your pc and the www.microsoft.com host?

ii. Looking at the host names of the routers in the tracert output try to determine the cities that the routers along this route are in:

5. ARP Address Resolution Protocol.

When a node needs to send an IP packet to another node on the same network it has to determine the physical (in our case that would be the Ethernet) address of the destination node. The sending node will know the TCP/IP address of the destination but needs to now discover the Ethernet address of the destination. In order to do this it sends a broadcast on the local segment requesting the station with the destination IP address to reply with its Ethernet address.

You can see this demonstrated with a packet sniffer but that is not on today’s schedule. However, you can still see the results of this communication between nodes using the ARP tool provided with Windows.

ctec1767-2018S-lab2-ipconfig_route_netstat.docx Page 3 of 5

CTEC1767 Lab #2 ...... IPCONFIG, PING, TRACERT, ROUTE, ARP AND NETSTAT

5. continued..

Go to a command prompt arp –a

This will display your workstations current ARP table. It is a dynamic table and therefore the entries change all of the time. The table will list the IP addresses and corresponding Ethernet addresses of nodes that it has already communicated with.

Now, ping a node close to you and then re-run the arp -a command.

You should now see the IP and MAC address of the station that you pinged.

Ping a station on the Internet and then run arp -a. Does the station that you just pinged show up on the table? Why or why not?

6. [Homework] Outside of L17, use another Internet connection, for example, in another computer lab in the College (NOT L2, L16, L18, or L19), in a coffee shop, or from your laptop's (or phone’s) WiFi hotspot. As long as you are using a different Internet connection than in Question 1.

Where are you?

What device are you using?

Repeat Question 1.

a. DNS server(s):

b. Adapter (or physical) address:

c. IP address:

d. Subnet mask:

e. Default gateway:

ctec1767-2018S-lab2-ipconfig_route_netstat.docx Page 4 of 5

CTEC1767 Lab #2 ...... IPCONFIG, PING, TRACERT, ROUTE, ARP AND NETSTAT

When you are done, post these answers on Blackboard, OR email them to [email protected] and be sure to cc [email protected].

ctec1767-2018S-lab2-ipconfig_route_netstat.docx Page 5 of 5