In this practical exercise, we’ll set up a basic network using VirtualBox and Ubuntu as the guest operating system. We’ll configure two virtual machines (VMs) to represent two different networks, and configure networking between them. This will help you understand how routers, switches, and IP addressing work in a virtualized environment.

Prerequisites:

Create Two Virtual Machines in VirtualBox:

Configure VirtualBox Network Settings

For this exercise, we’ll use two virtual network adapters for each VM to simulate two networks. VirtualBox allows you to create multiple virtual networks using different network modes like NAT, Bridged, Host-Only, and Internal.

Here, we’ll use Internal Network for communication between the VMs and NAT for internet access.

VM1 (Ubuntu-VM1) Setup: