Open main menu

CDOT Wiki β

Changes

OPS335 Lab 1

126 bytes added, 09:35, 16 January 2017
Making Persistent (Permanent) Network Setting Changes
<ol>
<li value="7">Edit the '''ifcfg-''interfacename''''' file for each of your VMs to use a static IP address (refer to previous OPS235 lab on networking: [ [http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_6_-_CentOS7#Part_4:_Configuring_VM_Network_Setup_via_Command_Line_.28centos3.29 Network Config - CLI] ].<br> You should be configuring the BOOTPROTO ('''static''' instead of dhcp), IPADDR, NETMASK, GATEWAY, and DNS1 for this file. Note the following information for this setup:<ul><li>You Set your IPADDR for each VM with the following rules:<ul><li>Your IPADDR's third octet will be using your use the last 2 digits in your student number for .</li><li> Make certain that the third 4th octet in your the VM's IPADDRdoes not interfere with the '''GATEWAY''' or DNS'''. Your vm1 should use the first available address in the subnet (i.e. '''2''' instead of 1), vm2 the second ('''3 ''' instead of 2), and vm3 the third(i.e. Make certain that the '''IPADDR does not interfere with the GATEWAY or DNS!4'''instead of 3).</li></ul>/<;i></li><li>Don't forget to set the default gateway and DNS server for your VMs. You can use your host's IP address as a DNS server (''libvirt'' will proxy the requests to the real DNS server).</li><li> You can refer to your previous lab to obtain information for setup of these options: [ [http://zenit.senecac.on.ca/wiki/index.php/OPS335_Installation_Lab#Configuring_a_VM_host Configuring a VM Host] ]<br><br></li></ul><li>Make note of the files used and entries required and note them in your lab log-book.</li><li>Save your editing session, and then restart each VM and run the following command to ensure they still have the network configuration you set:</li></ol>
::'''ping''' (what is the purpose of this command?). Try to ping matrix and google from your host machine. Try to ping matrix and google from each of your VM's to ensure you can reach the outside world.
13,420
edits