Professional Documents
Culture Documents
MIN6014
Computer Network
Admin
Prepared by:
Oct 2017
1
Objectives:
1. Demonstrate the use of command prompt 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
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 -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.
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
6
Ping
Run the ping /? command and answer the following questions.
-t Ping the specified host until stopped. To see statistics and continue - type Control-
Break; To stop - type Control-C.
7
3. What is the command used to run infinite ping? Screenshot the output of the infinite ping.
8
9
Tracert
1
0
1
1
Nbtstat
-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.
1
2
-r (resolved) Lists names resolved by broadcast and via WINS
-s (sessions) Lists sessions table converting destination IP addresses to computer NETBIOS names.
1
3
Nslookup
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
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
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.
1
6
Ipconfig
1
7