Problem

In this hands-on project, you configure and test the DHCP daemon. 1. Turn on your compu...

In this hands-on project, you configure and test the DHCP daemon.

1. Turn on your computer. After your Linux system has been loaded, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type yum install dhcp and press Enter to install the DHCP server daemon. Type y and press Enter when prompted to continue the installation.

3. Edit the /etc/dhcp/dhcpd.conf file with a text editor and add the following lines:

default-lease-time 72000;

option routers IP_address_of_your_class_default_gateway;

option domain-name-servers IP_address_of_your_class_DNS_server;

subnet class_network netmask subnet_mask {

range class_network.50 class_network.100;

}

For example, if your class uses the 192.168.1 network (subnet mask 255.255.255.0)

and a default gateway and DNS server of 192.168.1.254, you would add the following

lines:

default-lease-time 72000;

option routers 192.168.1.254;

option domain-name-servers 192.168.1.254;

subnet 192.168.1.0 netmask 255.255.255.0 {

range 192.168.1.50 192.168.1.100;

}

When finished, save your changes and quit the editor.

4. At the command prompt, type service dhcpd start and press Enter to start the DHCP daemon.

5. Connect a crossover cable to the Ethernet port on your computer’s NIC. Connect the other end of the cable to the Ethernet port on the NIC of your partner’s computer.

6. At the command prompt on your partner’s computer, type dhclient eth0 and press Enter to request a DHCP address.

7. At the command prompt on your computer, type cat /var/lib/dhcpd/dhcpd .leases and press Enter. Note the line that details the lease information.

8. At the command prompt, type service dhcpd stop and press Enter to stop the DHCP daemon.

9. Remove the crossover cable from your computer and your partner’s computer.

10. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 13