13,420
edits
Changes
no edit summary
# # Remain in your '''centos3''' VM for this section.
# Edit <code>'''/etc/dhcp/dhcpd.conf</code> ''' for a second time, and add a new subnet delcaration for your virtual network
# The network address is '''192.168.235.0/255.255.255.0''' and the range of host addresses should be from '''51 to 60'''
# Also add a default gateway for the virtual network of '''192.168.235.1'''
<ol><li value="5">Open another terminal window (ssh into centos3 from the centos host as user root) and issue the following command:
::: <b><code><span style="color:#3366CC;font-size:1.2em;">tail -f /var/log/messages</span></code></b><li>This will show you the last 10 lines of <code>'''/var/log/messages</code> ''' continue to display new lines as they are added to the log.</li><li>In your original terminal prompt attempt to start the <code>'''dhcpd</code> ''' service.</li>
<li>You should see new lines being added to the messages file.</li>
</ol>
|}
<ol>
<livalue="9">If the <code>'''dhcpd</code> ''' service fails to start any error messages will be logged in the messages file. Read the errors and attempt to fix your configuration file.</li><li>If the <code>'''dhcpd</code> ''' service starts successfully you should see success messages in the log. </li><li>If your <code>'''dhcpd</code> ''' service starts successfully, try to generate errors by editing the configuration file and introduce an error by removing a semicolon or closing curly bracket.</li><li>Restart your <code>'''dhcpd</code> ''' service and observe the error messages generated. This is good practice to learn how to trouble-shoot and solve dhcpd errors.</li>
<li>Make certain that you have corrected those errors, and that your dhcpd service works properly.</li>
</ol>