Assignments3 - Networking in Linux

Jump to: navigation, search



Some information regarding the document Tcp-ip-s1.pdf.

This document is outdated but it doesn’t matter, the principle about TCP/IP and networking is still the same and it is an excellent document to start with.

The document will only cover IPv4.

We will only focus in chapter1: Introduction to TCP/IP.

Here are a couple of questions that I want you to answer as best as you can.

You need of course to read chapter1 carefully and understand the content.

If you are struggling to understand some part of it don’t hesitate to contact me.


  1. Why do we need a standardisation in the computer industry?
  2. What was the purpose of TCP/IP in the beginning?
  3. Who started the Internet and why?
  4. What is the biggest difference between TCP/IP and other protocols?
  5. What is the OSI Model and why it was invented?
  6. Which layers does TCP/IP uses in the OSI model?
  7. Why is it so important to understand the OSI model and its layers?
  8. What does binary form means?
  9. What is the decimal equivalent of 11101110? Explain how you calculate the answer.
  10. Why do we use a subnet mask?
  11. How many IP addresses IPv4 are available?
  12. What is an ISP?
  13. What is special with the IP address
  14. What is the alternative names of
  15. Give example of class A, B, C IP addresses.
  16. The number of IP addresses are limited, what is the solution to this problem?
  17. Read the document Subnet_calculation.pdf. What is the answer for the network ?
  18. What is a TCP/IP packet?
  19. What is a packet switch network?
  20. What happens when some packet are lost during the data transfer?
  21. What is the role of TCP?
  22. How may bits is the TCP/IP header?
  23. What is the function of Identification flag in the header?
  24. What is TTL?
  25. Give some examples of other protocols.
  26. What service and port number did you use to remote connect to Linux?
  27. What is the difference between reserved and privileged ports?
  28. If you are able to login to your home router, what kind of information you can gather?
  29. Suppose that you can’t access from your browser, what are the steps that you need to take to troubleshoot and what are the commands that you can use?

Networking in Linux

The files that the system uses to be able to access the network are:


This file contains information about which method the system is using to get its IP address, by using DHCP service (more about this later) or by using static IP address.

If the system is using the DHCP service the parameters will not be visible. However if the system will use static IP address the following parameters are needed in the file:

  • iface eth0 inet
  • address
  • netmask
  • network
  • broadcast
  • gateway
  • Dns-nameservers

Check the content of this file. What do you see?


This file contains information about DNS.

Without this file you can’t get to or etc..


This files contains information about the local hostname and it’s IP address.


This files contains information about the local hostname.

Change the IP address of the Linux machine to static IP address and change the hostname to eniac01.

Test some network tools

To troubleshoot a network problem in your network environment you need to know how to use network tools in Linux.

Read the document Quick-HOWTO-Simple Network Troubleshooting.pdf and test the following commands. Fill in the Purpose and Example in the table.

Command Purpose Example with result in your machine


Send me your answers in an ASCII file.


File:Subnet calculation.pdf


File:Quick-HOWTO-Simple Network Troubleshooting.pdf

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux