Creating the NAT Network in Virtualbox

In this post we will configure the network so that Kali and Metasploitable-2 are on an isolated NAT Network. The first thing we need to do is create the NAT in Virtualbox.

  1. Open Virtualbox.
  2. Click File.
  3. Click Preferences.

On the left hand side, click on NETWORK.

Click on the + Icon highlighted below.

Now you should have a NatNetwork in the list. Nice.

Configuring both machines to the NAT Network.

What we need to do now is configure the machines we installed in the previous posts, to this NAT Network. You will need to do this on both the machines we installed, Kali Linux & Metasploitable-2.

To do this:

  1. Right-click the machine in Virtualbox.
  2. Click Settings.
  3. Click Network on the left hand side (See Below)

  1. Now click ‘Attached to:’ and select ‘NAT Network’
  2. In the ‘Name:’ field, select your NAT Network, example ‘NatNetwork’. (See Below)

Both machines should now be on the NAT Network (If you repeated these steps for both the machines).

To test this, launch both the machines and get them to ping each other. The command is the same for both machines.

ping [IP Address goes here]

You should get a response from both boxes.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.