You are on page 1of 17

SEM 1 2017/2018

MIN6014
Computer Network
Admin

LAB SHEET 1 BASIC WINDOWS NETWORKING COMMAND

Prepared by:

NAZRE BIN ABDUL RASHID

Oct 2017

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? Displays active TCP connections, ports on which the computer is listening,
Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and
IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols). Used without
parameters, netstat displays active TCP connections.

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

Netstat -a Displays all connections and listening ports.

Netstat -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.

Netstat -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.

Netstat -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.

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

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

Netstat -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.

5
Protocol Local Address Foreign Address State
TCP 0.0.0.0.135 0.0.0.0:0 LISTENING

TCP 0.0.0.0.445 0.0.0.0:0 LISTENING

TCP 0.0.0.0.5357 0.0.0.0:0 LISTENING

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

1. What does ping command do?


The ping command helps to verify IP-level connectivity. When troubleshooting, you can use ping to send an
ICMP echo request to a target host name or IP address. Use ping whenever you need to verify that a host
computer can connect to the TCP/IP network and network resources. You can also use ping to isolate
network hardware problems and incompatible configurations.

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

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

8
9
Tracert

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

1. What does tracert command do?

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

1
0
1
1
Nbtstat

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

1. What does nbtstat command do?

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)
-n (names) 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.

1
2
-r (resolved) Lists names resolved by broadcast and via WINS

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


(RealeseRefresh)
-A (Adapter Lists the remote machine's name table given its IP address.
status)

1
3
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

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


Server ns3.upsi.edu.my ns3.upsi.edu.my
Addresses

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

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

1. What does arp do?

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


Inet_addr Specifies an internet address.

Eth_addr Specifies a physical address.

1
5
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.

Displays the ARP entries for the network interface specified by 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.

Same as -a.

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

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
6
Ipconfig

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

1. What does ipconfig do?

2. Screen shot and explain the output of ipconfig command

END OF LAB QUESTION

1
7

You might also like