0% found this document useful (0 votes)
78 views4 pages

4.1 - Lab - Manual - 1 - CN - Basic Network Commands

Uploaded by

Ahmad Abduhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views4 pages

4.1 - Lab - Manual - 1 - CN - Basic Network Commands

Uploaded by

Ahmad Abduhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lab Manual / CN-5th/ BSSE / SE Dept.

/ UMT Lahore

Lab Manual # 01
Basic Commands
In this lab we will do some networking basic commands to better understand networking and in
its troubleshooting as well as its administration.
1-Ipconfig:
Ipconfig (ifconfig in Linux distributions) is a network administration utility, which helps to
get information about hosts’ ip address, default gateway, physical address etc.

1. Verify that your machine is connected to the internet


 Click on Start > All Programs > Accessories > Command Prompt

OR
 Click on Start > Run, type cmd and click on ok.
2. Type ipconfig (short for IP configuration) and press Enter.

Ipconfig /all ?

getmac ?

What is default gateway?


What is IP address?
Types of IP address
- Static
- Dynamic
- Ipv4
- Ipv6
IPv4 Classes?

IP Classes IP Address Range No. of Hosts and Networks

A 1.0.0.0 to Supports 16.7 million hosts on each of 126


126.255.255.255 networks
B 128.0.0.0 to Supports 65,534 hosts on each of 16,382
191.255.255.255 networks.
C 192.0.0.0 to Supports 254 hosts on each of 2 million
223.255.254.255 networks
D 224.0.0.0 to 239.255.255.255 Reserved for multicast groups.

Page 1|4
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

E 240.0.0.0 to Reserved for future use, or Research and Devel-


254.255.255.255 opment Purposes.

2-Ping:
Ping is also a network administration utility that is used to test the ability of the source
computer to reach a specified destination computer. The ping command is usually used as a
simple way to verify that a computer can communicate over the network with another
computer or network device.

Type the following command on cmd to check connectivity with a specified host on
a network:

>>>> ping host_ip_address

Ping yahoo.com and take a screenshot of the output.

Ping google.com and take a screenshot of the output.

(74.125.24.100)

Page 2|4
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

What things you noticed in the alert?


What is TTL?
exit command?

3-Tracert:
Also known as Traceroute in Linux, is a computer network diagnostic tool that is used to
show several details about the path that a packet takes from the computer or device you're
on to whatever destination you specify. It will show every step between your host machine
to your destination machine, that you will specify using tracert command.
If you have problem connecting to a website server, tracert can help you finding where
actually the problem is. Tracert shows us the path traffic takes to reach the website. It also
displays the delays that occur at each stop. If you’re having issues reaching a website and
that website is working properly, it’s possible there’s a problem somewhere on the path
between your computer and the website’s servers. Tracert would show you where that
problem is.
1. Verify that your machine is connected to internet
 Click on Start > All Programs > Accessories > Command Prompt

OR
 Click on Start > Run, type cmd and click on ok.
2. Type ipconfig (short for IP configuration) and press Enter, the screen will show the
IP address, subnet mask, and default gateway for your computer’s connection. (we
have already discussed these three parameters)

For tracert all available switches or options, type: >> tracert \?

Type the following command on your command line:


>>>>tracert google.com OR
Page 3|4
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore

>>>>tracert IP_address

In a successful output, you will see listings of all routers the tracert requests had to pass
through to get to the destination.

Format of output will be:


3.
Hop RTT1 RTT2 RTT3 Domain Name [IP Address]

First line represents the router address you are behind and each line further down
represents a router that’s further away.

4. Use different switches and note down their outputs as well as explain them.
5. Explain in Hop, RTT1, RTT2, RTT3 and Domain name in step 5.

4-Netstat: netstat (network statistics) is a command line diagnostic tool that displays
network connections (both incoming and outgoing), port numbers, connection state and
protocol type etc. It can help find you any malicious or Illegitimate connections
established with your machine and also help finding installed rootkits.

6. For all available switches or options, type on command line as:


>>netstat /?

7. Note down the netstat command output and briefly explain it.

Page 4|4

You might also like