# Network setup

For the lab environment we will create a Host only network. This is so that the hosts in this network are unable to connect through the internet. Only the host or other virtual machines inside this network will be able to interact with the lab. Incase internet access is required, the machine could temporarely be connected to a NAT network.

## General network configuration:

\
Adapter: Host-only\
Internet access: No\
Subnet: 10.0.0.0\
Subnetmask: 255.255.255.0\
DHCP: Disabled

## Creating a host-only network

1. Open VMware workstation and click on "Edit" and then "Virtual Network Editor"

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-fc8c051092729aa4ed57c9270d771a14823f6f9a%2Fimage.png?alt=media" alt=""></div>

2\. Click on "Change Settings" and accept the UAC prompt.

3\. Click on "Add Network" and Click "OK"

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-9a0e034091ac2137e10619127e3e81e7657343aa%2Fimage.png?alt=media" alt=""></div>

4\. Select the newly created network and copy the following settings:

* Host-Only
* Deselect "Use local DHCP service to distribute IP address to VM"
* Subnet IP: 10.0.0.0
* Subnet Mask: 255.255.255.0

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-3f1481c359abfca3bb9d862e4b079f6a8f027241%2Fimage.png?alt=media" alt=""></div>

5\. Click "OK"

**From now on every machine that we clone should be setup on the VMnet2 network.**
