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.
- Open Virtualbox.
- Click File.
- 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:
- Right-click the machine in Virtualbox.
- Click Settings.
- Click Network on the left hand side (See Below)
- Now click ‘Attached to:’ and select ‘NAT Network’
- 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.