Sunteți pe pagina 1din 2

COMPUTER NETWORKS LAB

ASSIGNMENT – 1
Exercise – 1

At the end of this exercise, you should have some basic understanding of how a host
manages network information as well as gain some experience on using networking
tools.

1. Go through the slides given to get an idea of the Protocol Stack and how the layers
communicates.

2. Work with the following commands and prepare notes. You can use the man pages of
the following commands. Eg: man ping will give you help and various options you can
use with ping command.
ping
arp
ifconfig ( If the command is not working install the package using sudo apt-get
install net-tools)
host
nslookup
traceroute ( If command not working install package using the command sudo
apt-get install inetutils-traceroute)

3. Look at /etc/hostname; /etc/hosts; /etc/network/interfaces; /etc/resolv.conf;


/etc/protocols; /etc/services and understand what the files are for. Prepare Notes on your
findings.

Exercise – 2
Using the above discussed commands try to find answer to the following questions.

1. Whats your machine's host name and IP address? How did you get this information?
2. What is the next hop router's IP address and MAC address? How did you get this
information?
3. What is the local DNS server's host name and IP address? How did you get this
information?
4. What do the numbers in the file /etc/protocols represent?
5. What is the port number associated with applications: ssh, ftp, nfs, smtp (email)?

S-ar putea să vă placă și