Configure NAT Network for VM Communication
Prepared by - Babashaheer
â Back to HomeBy default, VirtualBox virtual machines use NAT (Network Address Translation) which allows them to access the internet but NOT communicate with each other. This guide shows you how to create a NAT Network so all your VMs (Windows Server, Ubuntu, ONOS) can talk to each other while still having internet access.
First, we need to create a NAT Network in VirtualBox's global settings.
How to do it:
How to do it:
How to do it:
Network Name: Apple
Network CIDR: 10.10.10.0/24
Enable DHCP: â Checked (leave it enabled)
Supports IPv6: âŦ Unchecked (we don't need this)
Now we need to change each VM's network settings to use the NAT Network we just created.
For each virtual machine (Windows Server, Ubuntu, ONOS), do the following:
Here's what you need to change:
â BEFORE (Default - VMs can't talk to each other):
Attached to: NAT
â AFTER (New setting - VMs can communicate):
Attached to: NAT Network
Name: Apple
Steps to change:
You must do Step 4 and Step 5 for EVERY VM you have:
Let's verify that your VMs can now communicate with each other!
Boot up your VMs:
On Windows Server:
On Ubuntu Linux:
From Windows, ping Linux:
From Linux, ping Windows:
Here's what your network looks like now:
sudo ufw disable on Linux to test if firewall is blockingipconfig /renewsudo dhclient -r && sudo dhclientWhat you accomplished: