Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6 - CentOS7

191 bytes removed, 12:18, 4 May 2015
no edit summary
= Configuring a Customized Network Using Setup with Host Machine and Virtual Machines =
==Overview==
|}
==INVESTIGATION 1: Configuring a Network Using Virtual Machines ==
== Part 1: Configuring a Private Network Using Virtual Machines (Virtual Machine Manager) ==
=== Investigation 1: How do you create a new virtual network. ===
[[Image:network-config-centos.png|thumb|600px|right|This diagram shows the current network configuration of your '''c7host''' machine in relation to your '''Virtual Machines'''. In this section, you will be learning to change the default network settings for both your '''c7host''' machine and '''VMs''' to belong to a '''virtual network''' using fixed IP Addresses. ]]
Before configuring our network we want to turn off dynamic network configuration for our Virtual Machines by turning off the "default" virtual network.
</ol>
'''Answer the Investigation Part 1 observations / questions in your lab log book.''' === Part 2: Configuring VM Network Setup Graphically ('''system-config-network''')===
=== Investigation 2: How do you configure a static network using <code>system-config-network</code>. ===
{{Admon/note | Use centos2 | Complete this investigation on your centos2 VM.}}
# Start '''centos2''' VM and login
# On your '''centos host''' run <code>ifconfig</code> and make note of the IP address assigned to the <code>virbr1</code> interface. This will be the default gateway and DNS server for your VMs.[[Image:new_network_dialog.png|thumb|350px]]
# To verify that centos2 has the correct default gateway configured, use the commands <code>route -n</code>, <code>ifconfig</code>, <code>nslookup</code>, and <code>ping</code>
'''Answer the Investigation Part 2 observations / questions in your lab log book.'''
=== Investigation Part 3: What files does the <code>system-config-network</code> GUI tool change?. Backing up Only Recent File Changes ===
{{Admon/note | Use centos1 | Complete this investigation on your centos1 VM.}}
{{Admon/tip | Tip | Just for interest, it is relatively simple to automate your backups. You just create a Bash Shell script file using the <code>find</code> command above, give the shell script executable permissions, and use the <code>crontab</code> command to schedule when this script is to be run. If you want to learn more about shell scripting, you can take or refer to the course called '''OPS435''' .}}
'''Answer the Investigation Part 3 observations / questions in your lab log book.''' === Part 4: Configuring VM Network Setup via Command Line ('''centos3''') ===
=== Investigation 4: How do I configure the network without a GUI tool? ===
{{Admon/note | Use centos3 | Complete this investigation on your centos3 VM.}}
# Start '''centos3''' VM and login as root
# Use the command <code>ifconfig</code> to list active interfaces, you should see one with a name of <code>eth0</code> or a similar name.
# Login and attempt to <code>ssh</code> to your matrix account to verify the settings.
'''Answer the Investigation Part 4 observations / questions in your lab log book.''' ==INVESTIGATION 2: CUSTOMIZING THE VIRTUAL NETWORKING ENVIRONMENT === === Part 1: Using Local Hostname Resolution ===
=== Investigation 5: How do I setup local hostname resolution? ===
{{Admon/note | Use each machine | Complete this investigation on all of your VM's and the centos host.}}
{{Admon/note | Hosts files vs. the Domain Name System | On large public networks like the Internet or even large private networks we use a network service called [http://en.wikipedia.org/wiki/Domain_Name_System Domain Name System (DNS)] to resolve the human friendly hostnames like '''centos.org''' to the numeric addresses used by the IP protocol. On smaller networks we can use the <code>/etc/hosts</code> on each system to resolve names to addresses.}}
 
# Complete this investigation on all of your VM's and the centos host.
# Use the <code>hostname</code> and <code>ifconfig</code> commands on your centos host and all 3 VM's to gather the information needed to configure the <code>/etc/hosts</code> file on the centos host and the 3 VM's.
# Edit the <code>/etc/hosts</code> file on <u>each</u> of the '''virtual machines and the centos host'''. Refer to the table below for information to enter in the <code>/etc/hosts</code> file.
13,420
edits