Changes

Jump to: navigation, search

OPS235 Lab 8

94 bytes added, 22:41, 27 June 2016
no edit summary
# Now, add a new subnet delcaration for your virtual network:<br><br>The network address is: '''192.168.235.0/255.255.255.0'''<br>range of host addresses should be from: '''51 to 60'''<br>default gateway (routers) for the virtual network is: '''192.168.235.1'''<br><br>
# Save your editing session, and exit the text editor.
<ol><li value="6">Open another terminal window ('''Tip: ssh''' into your '''centos3''' VM from your '''c7host''' as '''root''') and issue the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">tail -f /var/log/messages</span></code></b><br><br>(This will show you the last lines of '''/var/log/messages''' continue to display new lines as they are added to the logfor confirmation and troubleshooting.)<br><br></li>
<li>In your '''centos3''' terminal, attempt to start the '''dhcpd''' service.</li>
<li>You should see new lines being added to the messages file.</li>
# Use your '''centos1''' and '''centos3''' VMs for this section.
# On your '''centos3''' terminal window (via ssh from your c7hsot machine) make sure that the command<br><b>tail -f /var/log/messages</b> is running.
# On your '''centos1''' VM, Graphically change the configuration of '''eth0''' (or your interface name) to receive dynamic address configuration (i.e. via graphical application, for IVP4 tab, change ''Address'' from '''Manual''' to '''DHCP''', and '''Apply''' settings)<br>([http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_6_-_CentOS7#Part_2:_Configuring_VM_Network_Setup_Graphically_.28system-config-network.29 Refer to Lab6, Investigation1, Part2]).<br><br>Note: if you are configuring via command line, make certain to restart the network for centos1.
# Logout and restart your '''centos1''' VM.
# Observe the messages that get logged from the tail -f command as your centos1 VM starts. You should see output similar to the following:<br><br>
::<span style="font-family:courier;">Jun 27 22:09:50 centos3 dhcpd: DHCPACK on 192.168.235.51 to 52:54:00:7c:85:13 (centos1) via eth0<br><br></span>
<ol>
<li value="6">On your '''centos1'''VM, confirm open a terminal, andconfirm the IP address assignment using <b><code><span style="color:#3366CC;font-size:1.2em;">ifconfigeth0</span></code></b></li>
<li>Has the IP Address changed? If so, how has the IP Address been assigned according to the '''dhcpd.conf''' file settings?</li>
</ol>
::<span style="font-family:courier;">&nbsp; &nbsp;expire 2 2016/06/28 02:34:22;</span>
::<span style="font-family:courier;"> }</span>
<ol><li value="3">On the client '''centos1''' check the contents of the <b>/var/lib/dhclient</b> directory. The files in this directory is where the dhclient stores its record of leases.<br><br> '''NOTE:''' If there are no files, then in a shell as '''root ''' in your '''centos1 ''' VM issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">dhclient eth0</span></code></b><br>Then check to see if there is file containing lease information in that directory.<br><br></li>
</ol>
<ol><li value="5">Start your service and test the address assignment by releasing your current address on '''centos1''' and then requesting a new address. Use the following commands on '''centos1''':</li>
</ol>
::: <b><code><span style="color:#3366CC;font-size:1.2em;">ifdown eth1eth0</span></code></b>::: <b><code><span style="color:#3366CC;font-size:1.2em;">ifup eth1eth0</span></code></b>
<ol><li value="6">Confirm that you received the fixed address you were supposed to.</li>
</ol>
13,420
edits

Navigation menu