CBCA222 Lab Assignment 1
CBCA222 Lab Assignment 1
Assignment. Name CO 1 CO 2 CO 3
1 Assignment:01 √
Assignment:01
Objective 1:
a) To gain familiarity with the basic network commands.
b) To know the network elements.
General Tips:
● Login as ipc2 user. Password is ipc2@123
● If any command is not installed on your system, do sudo apt-get update on the
Terminal followed by sudo apt-get install <command_name> to install it.
● To see more details about any command, type man <command_name> on the
Terminal.
● Running <command_name> -h on your Terminal will display the help menu of that
command.
Network Commands:
Run the following commands on your Terminal window.
Short for Packet InterNet Groper, the ping command is used to test the ability of your
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. The ping utility is commonly used to check for network errors and
works by sending ICMP ECHO_REQUEST to network hosts.
Figure 1. Output of ping command
a) Ping two different machines, one within India and the other one outside India,
and observe the latency.
i) For example, bennett.edu.in/and ssa.gov
b) Does pinging https://www.bennett.edu.in/ and bennett.edu.in/ make any
difference?
c) What happens when you enter “ping <ip address>”?
d) Explore these options in ping: -c,
If no arguments are given, ifconfig displays the status of the currently active interfaces.
If a single interface argument is given, it displays the status of the given interface only.
If a single -a argument is given, it displays the status of all interfaces, even those that
are down.
d) ifplugstatus
The ifplugstatus command will tell you whether a cable is plugged into a network
interface or not. It isn’t installed by default on Ubuntu. Use the following command to
install it:
3) DNS Tool
To work in interactive mode, type only “nslookup” in the command prompt. Thereafter,
type the URL name and press “ENTER”.
It isn’t installed by default on Ubuntu. Use the following command to install it:
traceroute is a command used to display the intermediate nodes through which a packet
flows from a source location to a destination location. A program capable of doing the
same in Microsoft Windows is tracert.
Figure 8. The output of “traceroute” command
For example,
“scp user1@host1:/home/user1/file.txt /home/your_username”
will copy the file “file.txt” (located at /home/user1) of the remote host host1 to your
local directory (/home/your_username).
To download the tar file (CN_Lab_Test1.tar) from host 172.16.2.53 to your system, the
command is
scp [email protected]:/home/ipc5/CN_Lab_Test1.tar /home/ipc2/
After typing the above command, enter the password legrand5
6) To test the speed of internet connection. Run the following commands for installing
speedtest-cli package.
After installation, type “speedtest-cli” in the Terminal and press enter. The output should be
similar to the figure below.
References:
1. Linux ‘man pages’ available at http://linux.die.net/man/
2. http://www.computerhope.com/
3. http://www.webupd8.org/2014/02/how-to-test-internet-speed-via-command.html
4. https://en.wikipedia.org/wiki/Wireless_router (Linksys router)
5. https://www.washington.edu/itconnect/connect/uw-networks/uw-housing/wireless-
routers-in-uw-residence-hall-rooms/ (Wireless Router ports)
6. http://www.groundcontrol.com/galileo/ch5-ethernet.htm (Ethernet cables &
accessories)
7. http://www.tigerdirect.com/applications/SearchTools/item-
details.asp?EdpNo=522989 (Wired NIC)
8. http://chauncy-
ict.pbworks.com/w/page/9660241/Network%20Interface%20Card%20and%20Twiste
r%20Pair%20Cable (Laptop Wireless NIC card)
9. http://www.microd.eu/store/cisco-catalyst-48-ethernet-10100-ports-poe-4-sfp-gigabit-
ethernet-ports-network-switch-ws-c3560v2-48ps-s (Ethernet Switch)
10. http://www.cisco.com/c/en/us/products/routers/1921-integrated-services-router-
isr/index.html (Router)