100% found this document useful (1 vote)
2K views

Basic Networking Commands

This lab report discusses basic Windows networking commands. The objectives are to demonstrate using the command prompt and introduce basic networking commands in Windows. The commands covered include netstat, ping, tracert, nbstat, nslookup, arp, and ipconfig. For each command, the documentation provides the purpose of the command, examples of flags/parameters, and sample outputs of running the commands.

Uploaded by

ewanewan27
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views

Basic Networking Commands

This lab report discusses basic Windows networking commands. The objectives are to demonstrate using the command prompt and introduce basic networking commands in Windows. The commands covered include netstat, ping, tracert, nbstat, nslookup, arp, and ipconfig. For each command, the documentation provides the purpose of the command, examples of flags/parameters, and sample outputs of running the commands.

Uploaded by

ewanewan27
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

MTN3023

SEM 1 2018/2019
LAB REPORT XX

LAB TITLE : LAB


SHEET 1 – BASIC
WINDOWS NETWORKING COMMAND

NAME : Mohammad Syazwan Bin Boharin


Matric Number : D20161072636

1
Objectives:

1. Demonstrate the use of command prompt in Windows


environment.

2. Introduce the basic command related to Computer Network


in Windows environment.

Instruction:
In this lab activity students will examine a couple of
useful network related utilities that are run using the
command prompt. Students are required to print screen all
related output and include it in the lab report. Students may
Google to find some information to answer the lab questions and
list the references that being used and cited.

Command Used:
netstat, ping, tracert, nbstat, nslookup, arp, ipconfig

2
Netstat
Run the netstat /? command and answer the following questions.

1. What does netstat do?

netstat (network statistics) is a command-line network utility tool that displays network connections for
the Transmission Control Protocol (both incoming and outgoing), routing tables, and a number of network
interface (network interface controller or software-defined network interface) and network protocol
statistics.

2. Fill in the chart for the flags of the command:


-a Displays all connections and listening ports.

-b Displays the executable involved in creating each connection or listening port. In some
cases well-known executables host multiple independent components, and in these
cases the sequence of components involved in creating the connection or listening
port is displayed. In this case the executable name is in [] at the bottom, on top is the
component it called, and so forth until TCP/IP was reached. Note that this option can
be time-consuming and will fail unless you have sufficient permissions.

-p proto Shows connections for the protocol specified by proto; proto may be any of: TCP,
UDP, TCPv6, or UDPv6. If used with the –s option to display per-protocol statistics,
proto may be any of: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.

-s Displays per-protocol statistics. By default, statistics are shown for IP, IPv6, ICMP,
ICMPv6, TCP, TCPv6, UDP, and UDPv6; the -p option may be used to specify a subset
of the default.

-e Displays Ethernet statistics. This may be combined with the –s option.

-q When used in conjunction with -b, will display sequence of components involved in
creating the connection or listening port for all executables.

-n Displays addresses and port numbers in numerical form.

interval Redisplays selected statistics, pausing interval seconds between each display. Press
CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current
configuration information once.

3. Run netstat –a –n and fill in the following the chart for the first 3 lines of output.
Protocol Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0

3
TCP 0.0.0.0:445 0.0.0.0:0

TCP 0.0.0.0:5040 0.0.0.0;0

4
Ping
Run the ping /? command and answer the following questions.

1. What does ping command do?

The ping command is a Command Prompt command 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.

2. Fill in the chart for the flags of the command:


-r count Record route for count hops.

-v TOS Type Of Service.

-k host-list Strict source route along host-list.

-a Resolve addresses to hostnames.

-f Set Don't Fragment flag in packet.

-t Ping the specified host until stopped. To see statistics and continue - type Control-
Break; To stop - type Control-C.

-n count Number of echo requests to send.

-j host-list Loose source route along host-list.

-l size Send buffer size.

-s count Timestamp for count hops.

-w timeout Timeout in milliseconds to wait for each reply.

-i TTL Time To Live.

2. Screenshot and explain the output lines of command ping www.google.com.my

5
3. What is the command used to run infinite ping? Screenshot the output of the infinite ping.

Ping www.google.com.my -t

6
7
Tracert

Run the tracert /? command and answer the following questions.

1. What does tracert command do?

racert is a Windows based command-line tool that you can use to trace the path that an Internet Protocol (IP)
packet takes to its destination from a source. Tracert will determine the path taken to a destination. It does
this by sending Internet Control Message Protocol (ICMP) Echo Request messages to the destination.

2. Fill in the chart for the flags of the command:


-h Maximum number of hops to search for target.
maximum_hops
-d Do not resolve addresses to hostnames.

-w timeout Wait timeout milliseconds for each reply.

-j host-list Loose source route along host-list.

3. Screenshot and explain the output of the command tracert www.instun.gov.my

8
Nbtstat

Run the nbtstat /? command and answer the following questions.

1. What does nbtstat command do?

NetBIOS over TCP/IP (NBT, or sometimes NetBT) is a networking protocol that allows legacy computer
applications relying on the NetBIOS API to be used on modern TCP/IP networks.

2. Fill in the chart for the flags of the command:


-c (cache) Lists NBT's cache of remote [machine] names and their addresses

-R (Reload) Purges and reloads the remote cache name table

-S (Sessions) Lists sessions table with the destination IP addresses

-a (adapter Lists the remote machine's name table given its name
status)
-s (sessions) Lists local NetBIOS names.

interval Redisplays selected statistics, pausing interval seconds between each display. Press
Ctrl+C to stop redisplaying statistics.

RemoteName Remote host machine name.

-RR Lists names resolved by broadcast and via WINS


(ReleaseRefresh)
IP address Dotted decimal representation of the IP address.

-s (sessions) Lists sessions table converting destination IP addresses to computer NETBIOS names.

-RR Sends Name Release packets to WINS and then, starts Refresh
(ReleaseRefresh)
-c (cache) Lists the remote machine's name table given its IP address.

9
Nslookup

1. What does nslookup command do?

nslookup is a network administration command-line tool available for many computer operating
systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or
for any other specific DNS record.

2. Run the nslookup www.upsi.edu.my and then nslookup www.usm.my . Compare and explain on
each output

nslookup www.upsi.edu.my nslookup www.usm.my


Server: UnKnown Server: UnKnown
Address: 10.100.60.1 Address: 10.100.60.1

Non-authoritative answer: Non-authoritative answer:


Name: www.upsi.edu.my DNS request timed out.
Addresses: 2407:2880:c001:d004::90 timeout was 2 seconds.
10.10.1.98 Name: osscentral3.usm.my
Address: 202.170.57.170
Aliases: www.usm.my

3. Run the nslookup www.utusan.com.my , specify the domain’s IP address and run nslookup
<domain’s IP>. Compare and explain on each output.

nslookup www.utusan.com.my Nslookup 104.28.6.56


Non-authoritative answer: DNS request timed out.
Name: www.utusan.com.my timeout was 2 seconds.
Addresses: 2606:4700:30::681c:738 *** Request to UnKnown timed-out
2606:4700:30::681c:638
104.28.6.56
104.28.7.56

1
0
Arp
Run the arp /? command and answer the following questions.

1. What does arp do?

Address Resolution Protocol (ARP) is a protocol for mapping an Internet Protocol address (IP address) to a
physical machine address that is recognized in the local network

2. Fill in the chart for the flags of the command:


inet_addr Specifies an internet address.

eth_addr Specifies a physical address.

-a Displays current ARP entries by interrogating the current protocol data. If inet_addr is
specified, the IP and Physical addresses for only the specified computer are displayed.
If more than one network interface uses ARP, entries for each ARP table are
displayed.

-N if_addr Displays the ARP entries for the network interface specified by if_addr.

if_addr If present, this specifies the Internet address of the interface whose address
translation table should be modified. If not present, the first applicable interface will
be used.

-g Same as -a.

-d Deletes the host specified by inet_addr. inet_addr may be wildcarded with * to delete
all hosts.

-s Adds the host and associates the Internet address inet_addr with the Physical address
eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens.
The entry is permanent.

3. Screenshot and explain the output of command arp -a

1
1
1
2
Ipconfig

Run the ipconfig /? command and answer the following questions.

1. What does ipconfig do?

pconfig (sometimes written as IPCONFIG) is a command line tool used to control the network
connections on Windows NT/2000/XP machines. There are three main commands: "all", "release", and
"renew". Ipconfig displays all current TCP/IP network configuration values and refreshes Dynamic Host
Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used without parameters,
ipconfig displays the IP address, subnet mask, and default gateway for all adapters.

2. Screen shot and explain the output of ipconfig command

1
3
END OF LAB 1

1
4

You might also like