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

From CDOT Wiki
Jump to: navigation, search
(Task 1 : setup and configure VM1)
(Background)
Line 24: Line 24:
 
| style='border: 2px solid black;  |  ens224 ip
 
| style='border: 2px solid black;  |  ens224 ip
 
| style='border: 2px solid black;  |  ens256 ip
 
| style='border: 2px solid black;  |  ens256 ip
 +
| style='border: 2px solid black;  |  hostname
 
|-
 
|-
 
| style="background-color:#ffff00; border: 2px solid black;" |  VMy
 
| style="background-color:#ffff00; border: 2px solid black;" |  VMy
Line 29: Line 30:
 
| style='background-color:#ffff00; border: 2px solid black;" |  172.20.xx.y
 
| style='background-color:#ffff00; border: 2px solid black;" |  172.20.xx.y
 
| style='background-color:#ffff00; border: 2px solid black;" |  192.168.xx.y
 
| style='background-color:#ffff00; border: 2px solid black;" |  192.168.xx.y
 +
| style='background-color:#ffff00; border: 2px solid black;" |  ----
 
| style='background-color:#ffff00; border: 2px solid black;" |  ----
 
| style='background-color:#ffff00; border: 2px solid black;" |  ----
 
|-
 
|-
Line 36: Line 38:
 
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.1
 
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.1
 
| style='background-color:#66cccc; border: 2px solid black;" |  do-not-use
 
| style='background-color:#66cccc; border: 2px solid black;" |  do-not-use
 +
| style='background-color:#66cccc; border: 2px solid black;" |  router
 
|-
 
|-
 
| style="background-color:#cccc66; border: 2px solid black;" |  VM2
 
| style="background-color:#cccc66; border: 2px solid black;" |  VM2
Line 42: Line 45:
 
| style='background-color:#cccc66; border: 2px solid black;" |  192.168.14.2
 
| style='background-color:#cccc66; border: 2px solid black;" |  192.168.14.2
 
| style='background-color:#cccc66; border: 2px solid black;" |  none
 
| style='background-color:#cccc66; border: 2px solid black;" |  none
 +
| style='background-color:#cccc66; border: 2px solid black;" |  pri-dns
 
|-
 
|-
 
| style="background-color:#66cccc; border: 2px solid black;" |  VM3
 
| style="background-color:#66cccc; border: 2px solid black;" |  VM3
Line 48: Line 52:
 
| style='background-color:#66cccc; border: 2px solid black;" |  192.168.14.3
 
| 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;" |  co-nfs
 
|-
 
|-
 
| style="background-color:#cccc66; border: 2px solid black;" |  VM4
 
| style="background-color:#cccc66; border: 2px solid black;" |  VM4
Line 54: Line 59:
 
| style='background-color:#cccc66; border: 2px solid black;" |  192.168.14.4
 
| style='background-color:#cccc66; border: 2px solid black;" |  192.168.14.4
 
| style='background-color:#cccc66; border: 2px solid black;" |  none
 
| style='background-color:#cccc66; border: 2px solid black;" |  none
 +
| style='background-color:#cccc66; border: 2px solid black;" |  rns-ldap
 
|}
 
|}
 
+
 
 
=== Task 1 : setup and configure VM1 ===
 
=== Task 1 : setup and configure VM1 ===
 
* ssh to your VM1 from matrix
 
* ssh to your VM1 from matrix

Revision as of 20:34, 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 private network for your assigned VMs in the OPS535 Virtual Lab for this lab, future labs, and assignments
  • Configure VM1 as your control workstation for performing remote administration tasks on VM[2-4]
  • 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, where 'xx' is you assigned network number, and 'y' is the VM number. The following are the port mapping and the network interfaces on each VM:

VM Port ens192 ip ens224 ip ens256 ip hostname
VMy 9xxy 172.20.xx.y 192.168.xx.y ---- ----
VM1 9141 172.20.14.1 192.168.14.1 do-not-use router
VM2 9142 172.20.14.2 192.168.14.2 none pri-dns
VM3 9143 172.20.14.3 192.168.14.3 none co-nfs
VM4 9144 172.20.14.4 192.168.14.4 none rns-ldap

Task 1 : setup and configure VM1

  • ssh to your VM1 from matrix
ssh -p 9141 student@ops535.myvmlab.senecacollege.ca
  • confirm the IP address on the network dev 'ens192'.
  • run the 'nmtui' command under sudo and configure ens224 with the appropriate IP address (192.168.xx.1) as shown.
  • install the 'epel-release' package
  • install the 'ansible' package
  • install the 'git' package
  • install the 'wget' package

Task 2: setup and configure VM2 - VM4

  • you can either ssh to your VM2 - VM4 from matrix or from your VM1.
  • ssh to your VM2 - VM4 from matrix, replace [2-4] with 2, 3, or 4:
ssh -p 914[2-4] student@ops435.myvmlab.senecacollege.ca
  • ssh to your VM2 - VM4 from your VM1
ssh 172.20.14.[2-4]

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