Lab 2
Lab 2
Data Communication
Course: Network Lab Date: 21-02-2024
Course Code: CSL-320 Max Marks: 20
Lab Engineer: Muhammad Umar
Faculty’s Name: Dawood Akram
Nasir
Objective(s):
To be familiar with network terminologies. Compare network information to other PCs on
the network. Learn to use TCP/IP Groper (ping) command from a workstation.
Tool(s) used:
Command Line Interface (CLI)
Establish and verify connectivity to the Internet. This ensures the computer has an IP
address.
Use the Start menu to open the Command Prompt, an MS-DOS-like window. Press Start >
Programs > Accessories > Command Prompt OR Start > Programs > Command
Prompt OR Press Start>Run Then type cmd.
The following figure shows the Command screen. Type ipconfig and press the Enter key. The
spelling of ipconfig is critical while case is not. It is short for IP Configuration.
Fig 2.1 ipconfig on Command Prompt
This first screen shows the IP address, subnet mask, and default gateway. The IP address and the
default gateway should be in the same network or subnet, otherwise this host would not be able to
communicate outside the network. In the figure the subnet mask tells us that the first three octets
must be the same to be in the same network.
Note: If this computer is on a LAN, the default gateway might not be seen if it is running behind a
Proxy Server Record the following information for this computer.
IP address: ___________________________________________________________________
Step 4: Compare the TCP/IP configuration of this computer to others on the LAN
The IP addresses should share the same network portion. All machines in the LAN should share the
same default gateway.
The host name should be displayed. Also, the DHCP server address, if used, and the date the IP lease
starts and ends should be displayed. Look over the information. Entries for the DNS, used in name
resolution servers, may also be present.
The previous figure reveals that the router is performing both DHCP and DNS services for this
network. This would likely be a small office or home office (SOHO) or small branch office
implementation.
Notice the Physical Address (MAC) and the NIC model (Description).
In the LAN, what similarities about the Physical (MAC) Addresses are seen?
While not a requirement, most LAN administrators try to standardize components like NICs.
Therefore, it would not be surprising to find all machines share the first three Hex pairs in the
adapter address. These three pairs identify the manufacturer of the adapter.
Repeat the previous steps as necessary. Make sure that it is possible to return to and
interpret this screen.
In the window, type ping, a space, and the IP address of a computer recorded in the previously. The
following figure shows the successful results of ping to this IP address.
ping uses the ICMP echo reply feature to test physical connectivity. Since ping reports on four
attempts, it gives an indication of the reliability of the connection. Look over the results and verify
that the ping was successful. Is the ping successful?
Try to ping the IP address of the default gateway if one was listed in the last exercise. If the ping is
successful, it means there is physical connectivity to the router on the local network and probably
the rest of the world.
Step 5: Ping the IP address of a DHCP or DNS servers
The 127.0.0.0 network is reserved for loopback testing. If the ping is successful, then TCP/IP
is properly installed and functioning on this computer.
Try to ping the hostname of the computer that was recorded in the previous lab. The figure
shows the successful result of the ping the hostname.
Look over the results. Notice that the first line of output shows the host name, m450 in the example,
followed by the IP address. This means the computer was able to resolve the host name to an IP
address. Without name resolution, the ping would have failed because TCP/IP only understands
valid IP addresses, not names.
If the ping was successful, it means that connectivity and discovery of IP addresses can be done with
only a hostname. In fact, this is how many early networks communicated. If successful, then ping a
hostname also shows that there is probably a WINS server working on the network.
Note: It would not be uncommon for a Windows 2000 or XP networks to not support this feature. It
is an old technology and often unnecessary.
If the last ping worked, try to ping the hostname of any another computer on the local network. The
following figure shows the possible results.
Note: The name had to be typed in quotes because the command language did not like the space in
the name.
The first output line shows the Fully Qualified Domain Name (FQDN) followed by the IP address. A
Domain Name Service (DNS) server somewhere in the network was able to resolve the name to an IP
address. DNS servers resolve domain names, not hostnames, to IP addresses.
Without this name resolution, the ping would have failed because TCP/IP only understands valid IP
addresses. It would not be possible to use the web browser without this name resolution.
With DNS, connectivity to computers on the Internet can be verified using a familiar web address, or
domain name, without having to know the actual IP address. If the nearest DNS server does not
know the IP address, the server asks a DNS server higher in the Internet structure.
Fig 2.7 ping failure for Microsoft because some Microsoft routers are configured to ignore ping
Notice that the DNS server was able to resolve the name to an IP address, but there is no response.
Some Microsoft routers are configured to ignore ping requests. This is a frequently implemented
security measure.
ping some other domain names and record the results. For example, ping www.msn.de
tracert uses the same echo requests and replies as the ping command but in a slightly different way.
Observe that tracert actually contacted each router three times. Compare the results to determine
the consistency of the route. Notice in the above example that there were relatively long delays after
router 11 and 13, possibly due to congestion. The main thing is that there seems to be relatively
consistent connectivity.
Each router represents a point where one network connects to another network and the packet was
forwarded through.
Try tracert on other domain names or IP addresses and record the results. An example is
tracert www.hec.gov.pk
Try using the tracert command with a local host name or IP address. It should not take long
because the trace does not pass through any routers.
b) Click on “homegroup”.
c) A new window comes up
a) Open Windows Explorer or any file utility of your choice. select the drive. Right-click
it or right-click the right frame, position the mouse on New, and click Folder:
Step 2: To share it
a) Start Windows Explorer and display the drive where the folder is located
b) Right-click the folder -> Share With -> Specific Profile
d) Then:
i. If you want to control access of the folder for all user accounts, click Everyone
ii. If you want to control access for a specific account and that account is in the list,
select it
If you want to control access for a certain user but his or her account is not listed, click Create A New
User... and create the new account.
Under Permission Level click the down-pointing arrow for the account you selected.
Select the desired permission
Click Share
Click Done.
o If you leave Remember My Credentials unchecked, the next time you try accessing
the folders of that computer, you will be asked to provide the credentials (user
name and password) again
o If you check Remember My Credentials, next time, you can access the folders of that
computer