# LAB Network Setup

Network-

<figure><img src="https://2429440930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvmiq90eCUf7ZZMUGm7Qu%2Fuploads%2FrxA275blSvc3RU762mFG%2Fimage.png?alt=media&#x26;token=3c2c17d5-a36f-4b92-872b-10a4430531fa" alt=""><figcaption></figcaption></figure>

On Windows VM-<br>

<figure><img src="https://2429440930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvmiq90eCUf7ZZMUGm7Qu%2Fuploads%2FX8suBH5mbzVqcCIqEQdN%2Fimage.png?alt=media&#x26;token=28d13722-6f69-40eb-9881-91f840514e71" alt=""><figcaption></figcaption></figure>

On remnux-

```
	sudo nano /etc/netplan/01-netcfg.yaml
```

for NAT-

```
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      dhcp4: yes

```

For internal network -

```
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      dhcp4: yes
      addresses: [10.0.0.3/24]
      gateway4: 10.0.0.1

```

<figure><img src="https://2429440930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvmiq90eCUf7ZZMUGm7Qu%2Fuploads%2FxgIWNYgcJlsjtpLEJDnF%2Fimage.png?alt=media&#x26;token=4a1729a7-2197-401b-8bc0-14f6d24e0e0b" alt=""><figcaption></figcaption></figure>

```
	sudo netplan apply
```

To Download malware or repair tools , change network to NAT in network settings.

{% hint style="info" %}

#### Change to previous settings before detonating malware!!!!!!!!

{% endhint %}
