Changes

Jump to: navigation, search

OPS235 Lab 8

62 bytes added, 21:22, 27 June 2016
no edit summary
[[Image:dhcp-pic.png|thumb|right|350px|'''Hot-spots''' offer the ability for users to connect to the Internet via their mobile devices. '''Hybrid solutions''' combine DHCP and fixed IP Address. ]]
|}
There are various different ways in which computers can be networked together. Some computer networks (such as computer labs) configure their workstations for '''static IP addresses for security and to provide other interesting features such as WOL''' (Wake Up on Lan) which allows a signal from a computer system to remotely start all or specified workstations within the lab.
'''Hot-spots (such as cafes or airport lounges) offer the ability for users to connect to the Internet (via '''DHCP''') from their mobile devices''' (notebooks, netbooks, tablets, or smart phones). Finally, there are '''hybrid ''' solutions that may offer both fixed IP address (computer workstations) and allow for wireless connections (via DHCP) to a mobile devices''' (like at your Seneca computer labs).
In lab6, you learned to connect your VMs to a VPN using a fixed IP Address. In this final lab, you will learn to set-up a '''DHCP server''' to automatically assign IP Addresses upon connection requests.
<u>Main Objectives</u>
* To install, configure, and test Internet Systems Consortium's ('''ISC''''s ) DHCP Server.
* To obtain log information from DHCP server including lease address information.
* To lease the same IP address every-time from VM boot-up (instead of having DHCP server randomly assign IP address).
|- valign="top"
|width="8%" | <u>'''D'''</u>iscovery:
|width="40%" |The client broadcasts a '''message''' (IP lease request) on a sub-network to '''discover''' available DHCP servers.
|colspan="2" rowspan="4"|[[Image:dora.png|thumb|right|400px|The term '''DORA''' best describes how '''DHCP''' works. ]]
|- valign="top"
|width="8%" | <u>'''O'''</u>ffer:
|width="40%" |The DHCP server receives the request from the client, '''reserves an IP ADDRESS''' for the client and sends a '''DHCPOFFER'''.
|- valign="top"
|width="8%" | <u>'''R'''</u>equest:
|width="40%" |The DHCP server broadcasts a message '''request for acceptance''', but also notifies other DHCP serverservers.
|- valign="top"
|width="8%" | <u>'''A'''</u>cknowledgement:
|width="40%" |The client sends a '''message of acceptance to the server'''. In turn, the client receives from the server a '''packet of information''' containing the lease duration and other configuration information.
|}
=== Part 1: Installation of a DHCP===
:'''Perform the following steps:'''
# Perform this section in your '''centos3''' VM.<br><br>The version of DHCP server that comes with CentOS is maintained and distributed by the Internet Software Consortium (http://www.isc.org). The source package that you can download from ISC includes not only the DHCP server, but also a DHCP client and a DHCP relay agent. CentOS separates it into two RPM packages: the DHCP client package and the DHCP server package. The DHCP client package is installed by default by the workstation installation.<br><br>
# Issue the following command to install the dhcp server package: <b><code><span style="color:#3366CC;font-size:1.2em;">yum install dhcp</span></code></b>
# Enter the command to list all the files installed from the DHCP server package by issuing the command: <b><code><span style="color:#3366CC;font-size:1.2em;">rpm -qla dhcp</span></code></b>
# What which file appears to be a sample (example) '''configuration file for dhcpd.conf'''?
# Copy the '''dhcpd.conf.example''' file to the '''/etc/dhcp''' directory making sure it is named: '''/etc/dhcp/dhcpd.conf'''
=== Part 2: Configuring the DHCP Server===
:'''Perform the following steps:'''
# Remain in your '''centos3''' VM for this section.
=== Part 3: Configuring DHCP Server for Static IP Addresses===
:'''Perform the following steps:'''
# Remain in your '''centos3''' VM for this section.
=== Part 4: How do I test my dhcpd service on my virtual network?===
:'''Perform the following steps:'''
# Use your '''centos2''' and '''centos3''' VMs for this section.
=== Part 1: Obtaining Leased Address Infomation===
:'''Perform the following steps:'''
# Remain in your '''centos2''' and '''centos3''' VMs for this section.
=== Part 2: Configuring DHCP server to Continually Lease Same IP Address===
:'''Perform the following steps:'''
# Remain in your '''centos2''' and '''cento3''' VMs for this section.
{{Admon/important|Time for a new backup!|If you have successfully completed this lab, make a new backup of your virtual machines as well as your host machine.}}
:'''Perform the Following Steps:'''
# Switch to your '''centos2''' VM.
13,420
edits

Navigation menu