CN Lab-2
CN Lab-2
CN Lab-2
Lab Manual: 2
21
CN LAB-2:
Objectives
The aim of the laboratory to ensure network connectivity and performing basic configuration.
Troubleshooting network using different commands on both operating systems.
Learning basic network configuration like configuring dynamic and static IP address and
troubleshooting How to use different commands in Windows and Linux both and learning their
outputs.
Knowledge of troubleshooting with different ways for resolving the issue is necessary for the
connectivity between different computers in a small network. In that lab two client network is
use for learning the network connectivity. One is Windows 10 and second is Red Hat Linux.
22
Task Using Network commands with Windows
▪ Click on Start > All Programs > Accessories > Command Prompt
OR
▪ Click on Start > Run, enter cmd (short for command) and click on ok.
The IP address and the default gateway should be in the same network/subnet; otherwise this
host would not be able to communicate outside the network. In Fig. 1, the subnet mask tells us
that the first three octets of the IP address and the default gateway must be same in order to be
in the same network.
Type ipconfig /all and press Enter. What are the DNS and DHCP server addresses? What are
their functions? What is the MAC of the network interface card?
(Search; what is DHCP server?)
23
Fig.2 Result of a ipconfig/all
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.
24
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) Ping the Loopback IP address of your computer. Type the following command:
ping 127.0.0.1.
The IP address 127.0.0.1 is reserved for loopback testing. If the ping is successful, then TCP/IP is
properly installed and functioning on this computer.
8) You can also ping using names like websites. Ping the IP address of the Google website. Type
ping space and www.google.com then presses 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.
25
9) Type arp –a in cmd ,this command handles the resolution of a IP to a physical address. The
command gives a list of IPs and physical addresses on your local network.
2. cd change directory
26