Difference between revisions of "OPS535-vl-lab-nfs"

From CDOT Wiki
Jump to: navigation, search
(Pre-Requisites)
(Investigation 1: VMs Configuration)
Line 14: Line 14:
  
 
==Investigation 1: VMs Configuration==
 
==Investigation 1: VMs Configuration==
 +
=== Background ===
 +
You have ssh access to your assigned VMs from matrix.senecacollege.ca using the port numbers, user name, and the corresponding password given on Blackboard via the router ops535.myvmlab.senecacollege.ca. The access router will map the ports (9xxy) to the corresponding internal IP addresses (172.20.xx.y) of your VMs. The following are the port mapping and the network interfaces on each VM:
 +
 +
{| class="wikitable" | style="margin-left:50px; style="border: 2px solid black;" | "
 +
|- style="font-weight:bold; text-align:center;"
 +
| style="border: 2px solid black;" |  VM
 +
| style="border: 2px solid black;" |  Port
 +
| style='border: 2px solid black;  |  dev
 +
| style='border: 2px solid black;  |  ip addr
 +
| style='border: 2px solid black;  |  dev
 +
| style='border: 2px solid black;  |  ip addr
 +
| style='border: 2px solid black;  |  dev
 +
| style='border: 2px solid black;  |  ip addr
 +
|-
 +
| style="background-color:#66cccc; border: 2px solid black;" |  VM1
 +
| style="background-color:#66cccc; border: 2px solid black;" |  9141
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens192
 +
| style='background-color:#66cccc; border: 2px solid black;" |  172.20.14.1
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens224
 +
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.1
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens256
 +
| style='background-color:#66cccc; border: 2px solid black;" |  do-not-use
 +
|-
 +
| style="background-color:#66cccc; border: 2px solid black;" |  VM2
 +
| style="background-color:#66cccc; border: 2px solid black;" |  9142
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens192
 +
| style='background-color:#66cccc; border: 2px solid black;" |  172.20.14.2
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens224
 +
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.2
 +
| style='background-color:#66cccc; border: 2px solid black;" |  none
 +
| style='background-color:#66cccc; border: 2px solid black;" |  none
 +
|-
 +
| style="background-color:#66cccc; border: 2px solid black;" |  VM3
 +
| style="background-color:#66cccc; border: 2px solid black;" |  9143
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens192
 +
| style='background-color:#66cccc; border: 2px solid black;" |  172.20.14.3
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens224
 +
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.3
 +
| style='background-color:#66cccc; border: 2px solid black;" |  none
 +
| style='background-color:#66cccc; border: 2px solid black;" |  none
 +
|-
 +
| style="background-color:#66cccc; border: 2px solid black;" |  VM4
 +
| style="background-color:#66cccc; border: 2px solid black;" |  9144
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens192
 +
| style='background-color:#66cccc; border: 2px solid black;" |  172.20.14.4
 +
| style='background-color:#66cccc; border: 2px solid black;" |  ens224
 +
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.4
 +
| style='background-color:#66cccc; border: 2px solid black;" |  none
 +
| style='background-color:#66cccc; border: 2px solid black;" |  none
 +
|}
 +
 
 
Perform the following steps on vm2:
 
Perform the following steps on vm2:
 
  
 
==Investigation 2: Control Workstation Configuration==
 
==Investigation 2: Control Workstation Configuration==

Revision as of 18:13, 30 May 2021

DO NOT USE - Work in Progress DO NOT USE - Work in Progress

OPS535 Lab 2 (using Virutal Lab)

Objectives

  • Setup and configure your assigned VMs in the OPS535 Virtual Lab for this lab, future labs, and assignments
  • Configure one of the VMs as your control workstation for remote administration tasks
  • Create and deploy remote administration scripts using bash/ansible

Pre-Requisites

  • Has access to Seneca VPN, and matrix.senecacollege.ca
  • Complete the collection of baseline information on your assigned VMs (VM1, VM2, VM3, and VM4)
  • Complete the Lab 2 - NFS lab on your home VMs

Investigation 1: VMs Configuration

Background

You have ssh access to your assigned VMs from matrix.senecacollege.ca using the port numbers, user name, and the corresponding password given on Blackboard via the router ops535.myvmlab.senecacollege.ca. The access router will map the ports (9xxy) to the corresponding internal IP addresses (172.20.xx.y) of your VMs. The following are the port mapping and the network interfaces on each VM:

VM Port dev ip addr dev ip addr dev ip addr
VM1 9141 ens192 172.20.14.1 ens224 192.168.14.1 ens256 do-not-use
VM2 9142 ens192 172.20.14.2 ens224 192.168.14.2 none none
VM3 9143 ens192 172.20.14.3 ens224 192.168.14.3 none none
VM4 9144 ens192 172.20.14.4 ens224 192.168.14.4 none none

Perform the following steps on vm2:

Investigation 2: Control Workstation Configuration

Perform the following steps on VM1 as root:

Investigation 3: Scripts for remote administrations

Task 1

Using bash scripts

Task 2

Using Ansible Playbooks


Completing the Lab

Follow the instructions on blackboard to submit the lab.

Exploration Questions