Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Linux+ Certification Bible.pdf
Скачиваний:
46
Добавлен:
15.03.2015
Размер:
3.78 Mб
Скачать

404 Chapter 12 Study Guide

Scenarios

1.Management has instructed you to set up a schedule to perform automatic checks of disk space at least once a day. The company has had problems with running out of disk space on a routine basis, and they want to proactively monitor the situation to ensure that it won’t happen again. How can you accomplish this task?

2.A company’s Web server was recently upgraded with new Perl scripting code. Since the upgrade, the server crashes at least twice a day. What can the Linux administrator do to find and solve the problem?

Lab Exercises

Lab 12-1 Configuring Network Interfaces

The objective for this hands-on lab is to gain experience in setting up network interfaces by using the ifconfig command. This example assumes that you have one ethernet interface in the machine, and another machine on the network for testing purposes. You should be able to use any default Linux installation for this exercise.

1.See what your current interface configuration looks like by using ifconfig. ifconfig -a

2.In the output, there should be at least one ethernet interface, eth0, and possibly a loopback interface, lo. If there is no loopback interface, create it by using the following command:

ifconfig lo 127.0.0.1

Check to see if the loopback interface has been created by using the ifconfig -a command.

3.Now, set or change the IP address of the ethernet interface. The address is 192.168.1.1, and the subnet mask is 255.255.255.0.

ifconfig eth0 192.168.1.1 netmask 255.255.255.0

Check to see if the change worked by using the ifconfig -a command.

4.To check that the interface is working, use the ping command to test the address from another machine:

ping 192.168.1.1

5.Use the ifconfig command to disable the interface: ifconfig eth0 down

Try pinging it again from another computer; you should not get a response.

Соседние файлы в предмете Операционные системы