Exercises

  1. Examine your system’s TCP/IP configuration using ifconfig eth0 or a similar command for your network interface. Are you using DHCP? What type of subnet are you running with? Is it a class A, B, or C address? Are you using a private address? Experiment with taking the interface offline using ifconfig eth0 down and ifconfig eth0 up.

  2. Examine the contents of /etc/services. How many protocols do you recognize?

  3. Use the dig command to locate information from DNS servers about a domain name.

  4. Examine your /etc/hosts file. How much name resolution is accomplished in this file manually?

  5. Examine your /etc/resolv.conf file. How many DNS servers do you have available?

  6. Execute netstat -r. How many routes are reported? What are the routes to the local network and interface for?

  7. Use traceroute to examine the route to a favorite website.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.