<<

CTEC1330/2015F Lab #1 ...... , PING, TRACERT, , ARP AND

CLASS DISCUSSION: IP ADDRESSES, ROUTING.

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

IP classes

IP addressing

Subnet masks

Routers

Static and dynamic routing

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:

b. Adapter (or physical) address:

c. IP address:

d. Subnet mask:

e. :

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

a. Type netstat /? a dos 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.

Ping a local device and record the time:

Ping an external (remote) device and record the time:

4. TRACERT.

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 coherent.com” i. How many routers are between your pc and the coherent.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.simbol.ca” i. How many routers are between your pc and the www.simbol.ca 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/ 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.

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 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?

Get checked off on Blackboard when you have completed this lab