Saint Louis University: Laboratory Manual
Saint Louis University: Laboratory Manual
LABORATORY MANUAL
ACTIVITY NO. 8
BASIC NETWORKING COMMANDS
ACTIVITY OBJECTIVE:
At the end of the activity, the students should be to use of common networking commands and
interpret the results.
LABORATORY ACTIVITIES:
1. Research on the following networking commands:
hostname
ipconfig
ipconfig /release
ipconfig /renew
ipconfig /flushdns
ping
tracert
nslookup
netstat -e
arp -a
2. Type each of the networking commands at the command prompt and take a screenshot of the
displayed results.
Submit a report that includes:
(a) Syntax for the networking command
(b) Use of the networking command
(c) Screenshot of the displayed result in using the networking command.
(d) Interpretation of the displayed results.
hostname command is used to obtain the DNS (Domain Name System) name and set the
system’s hostname or NIS (Network Information System) domain name. A hostname is a name
LABORATORY MANUAL
which is given to a computer and it attached to the network. Its main purpose is to uniquely
identify over a network.
LABORATORY MANUAL
The displayed result shows the basic configuration of the device’s IP (internet protocol) which
includes the IP addresses, network adapter connected, and the default gateway.
The command is used to immediately give up its lease by sending the server a DHCP
release notification which updates the server's status information and marks the old client's IP
address as "available".
LABORATORY MANUAL
The displayed results show that the device has been disconnected from the server and the IP
used before disconnection will be marked available at the server for others to use in the future.
The command is used to request an IP address from the sevrer and reconnect the device to
the network.
LABORATORY MANUAL
The displayed results show that the device has been reconnected to the network and has
received an IP address from the server.
LABORATORY MANUAL
The command is used to used to clear the Domain Name System (DNS) cache to ensure
future requests use fresh DNS information by forcing hostnames to be resolved again from
scratch.
The displayed result shows that the DNS cache was successfully cleared.
6. Network command syntax: ping, ping -t, ping -a, ping -n count, ping -l size, ping -f, ping -i
TTL, ping -v TOS, ping -r count, ping -s count, ping -j host-list, ping -k host-list, ping -w
timeout, ping -R, ping -s srcaddr, ping -c compartment, ping -p, ping -4, ping -6.
Ping is a computer network administration software utility used to test the reachability of a
host on an Internet Protocol (IP) network. It is available for virtually all operating systems that
have networking capability, including most embedded network administration software. Ping
measures the round-trip time for messages sent from the originating host to a destination
computer that are echoed back to the source. Ping operates by sending Internet Control
Message Protocol (ICMP) echo request packets to the target host and waiting for an ICMP
echo reply. The program reports errors, packet loss, and a statistical summary of the results,
typically including the minimum, maximum, the mean round-trip times, and standard deviation
of the mean.
LABORATORY MANUAL
The displayed results show the different syntaxes added to the “ping” syntax to determine specific
parameters like, but not limted to, the Number of echo requests, buffer size, the actual ping in
milliseconds, type of service, and the timeout in milliseconds.
7. Network command syntax: tracert, tracert -d, tracert -h maximum_hops, tracert -j host-list,
tracert -w timeout, tracert -R, tracert -S srcaddr, tracert -4, tracert -6.
The tracert command is a Command Prompt command that's used to show several details
about the path that a packet takes from the computer or device to whatever destination
specified. The tracert diagnostic utility determines the route to a destination by sending Internet
Control Message Protocol (ICMP) echo packets to the destination. In these packets,
TRACERT uses varying IP Time-To-Live (TTL) values. Because each router along the path is
LABORATORY MANUAL
required to decrement the packet's TTL by at least 1 before forwarding the packet, the TTL is
effectively a hop counter. When the TTL on a packet reaches zero (0), the router sends an
ICMP "Time Exceeded" message back to the source computer.
The displayed results show the different syntaxes to be added after the command “tracert” to
determine different parameters like, but not limited to, the maximum number of hops, timeout,
trace round-trip for IPv6, and source address.
LABORATORY MANUAL
The displayed results show the default server that the device is connected to and the gateway
address of the server.
The displayed results show the bytes and packets received and sent from or through the
ethernet interface respectively.
LABORATORY MANUAL
Using the arp command allows the user to display and modify the Address Resolution
Protocol (ARP) cache. An ARP cache is a simple mapping of IP addresses to MAC addresses.
Each time a computer’s TCP/IP stack uses ARP to determine the Media Access Control (MAC)
address for an IP address, it records the mapping in the ARP cache so that future ARP lookups go
faster. The extended syntax, arp -a, is used to display entries of internet addresses along with their
physical addresses and the IP connective type.
The displayed resulsts show entries of different internet addresses from the device interfaced
address along with their corresponding physical address and connection type.
LABORATORY MANUAL
OBSERVATIONS:
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
LABORATORY MANUAL
CONCLUSIONS:
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________