4.1 - Lab - Manual - 1 - CN - Basic Network Commands
4.1 - Lab - Manual - 1 - CN - Basic Network Commands
/ 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.
OR
Click on Start > Run, type cmd and click on ok.
2. Type ipconfig (short for IP configuration) and press Enter.
Ipconfig /all ?
getmac ?
Page 1|4
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore
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:
(74.125.24.100)
Page 2|4
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore
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)
>>>>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.
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.
7. Note down the netstat command output and briefly explain it.
Page 4|4