Open main menu

CDOT Wiki β

Changes

OPS335 Lab 1

11 bytes added, 19:50, 20 January 2016
Making Persistent (Permanent) Network Setting Changes
# The name of the file that contains your persistent network settings has the following name format:<br>'''ifcfg-''interfacename'''''
# Which file-name in your network-scripts directory do you think contains your current network settings?
# View the contents of the file to see if it contains the IP ADDRESSaddress, subnet mask, and default gateway.
# What is the MAC address if your current machine?
# Does this file contain the hostname of your machine? If not, what command can allow you to change your machine's hostname?
Sometimes, you will be required to debug networking problems quickly by changing the network configuration of your VMs.
 <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, IPADDRESSIPADDR, NETMASK, GATEWAY, and GATEWAY DNS1 for this file. </li><li> Your vm1 should use the first available address in the subnet, vm2 the second, and vm3 the third. You can refer to your previous lab to obtain this information: [ [http://zenit.senecac.on.ca/wiki/index.php/OPS335_Installation_Lab#Configuring_a_VM_host Configuring a VM Host] ]</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>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.
If you are uncertain how to perform those above-listed operations by member, take time to practice them.
If everything works and you are comfortable with these operations then you may proceed to the next section.
 
== Linux Network Connection Configuration Troubleshooting ==