LAB2
LAB2
Lab 2
PC Network TCP/IP Configuration
Najran University
1
CSS329 – Data Communications and Computer Networks Lab 2
Introduction
An IP address is a unique network layer numbering system that end systems
use in order to identify and communicate with each other. It is a dotted decimal notation with
four numbers ranging from 0 to 255 separated by periods. The numbers currently used in IP
addresses range from 1.0.0.0 to 255. 255. 255. 255, though some of these values are reserved for
specific purposes. The decimals represent Octets of the bits in the binary representation of the IP
addresses. For example, 255 is equal to 28 and represents 11111111. This does not provide
enough possibilities for every Internet device to have its own permanent number. Subnet routing
is one of the methods currently in practice to allow LANs to use the same IP address as other
networks elsewhere, though both are connected to the Internet.
A Subnet (short for subnetwork) is a division of the network that is identified by a subnet
mask. A subnet mask is an IP address that is used to tell how many bits in an Octet(s) identify
the subnet and how many bits provide room for host addresses. For example, the Subnet Mask
255. 255. 255.0 tells that the first 24 bits represent the subnet, while the rest 8 bits identify the
hosts in the subnet.
This lab is a non-destructive lab and can be done on any machine without concern of
changing the system configuration. It should be performed in a classroom (or other LAN
environment) that connects to the Internet so that the computer that you use has an IP address.
Packet Internet Groper (ping) command is used to provide a basic test of whether a
particular host is operating properly and is reachable on the network from the testing host. It
provides estimates of round trip time and packet loss rate between hosts.
The traceroute (tracert) traces all the routers that a network layer packet has to pass
through to get to a destination.
2
CSS329 – Data Communications and Computer Networks Lab 2
Preparation
Experiment
1. Verify the connectivity of your workstation to the internet.
2. Open the Command Prompt of the operating system using either of the following methods:
Click on Start > All Programs > Accessories > Command Prompt or
Click on Start > Run, enter cmd (short for command) and click on ok. A Command
Prompt screen should open.
3
CSS329 – Data Communications and Computer Networks Lab 2
4
CSS329 – Data Communications and Computer Networks Lab 2
5
CSS329 – Data Communications and Computer Networks Lab 2
5. Ping the IP address of another computer. Note that for the ping and tracert
commands to work the PC firewalls have to be disabled. Why do you think
this is so?
Ask the IP address of the workstation that is being used by another group of
students. Then type ping, space, and the IP address that you received, then
press Enter. Notice the outputs.
Fig. 4 shows a successful result of a ping to a given IP address.
6
CSS329 – Data Communications and Computer Networks Lab 2
6. Ping the IP address of the gateway router from the details that have been observed in the
output of step 4 above. If the ping is successful, it means that there is a physical connectivity to
the router on the local network and probably the rest of the world.
7
CSS329 – Data Communications and Computer Networks Lab 2
8. You can also ping using names like websites. Ping the IP address of the cisco website. Type
ping, space and www.cisco.com, then press Enter. Notice the outputs. A DNS server will
resolve the name to an IP address and the ping will be successful only in the existence of the
DNS server.
8
CSS329 – Data Communications and Computer Networks Lab 2
9
CSS329 – Data Communications and Computer Networks Lab 2
10. Trace the route to the Cisco website. Type tracert www.cisco.com and press enter. In a
successful output, you will see listings of all routers the tracert requests had to pass through to
get to the destination.
11. Trace the route to the website of the Najran University. Type tracert www.nu.edu.sa and
press enter. The output should take less.
10
CSS329 – Data Communications and Computer Networks Lab 2
11