VMware Communities
ayy_moose
Contributor
Contributor

Setting up a dirty network/LAN

Sorry if the title is a bit misleading. I am trying to set up a dirty network in Kali Linux on Windows 10 using VMware Workstation Pro 12, following a guide that was originally written for VirtualBox, and I'm having some doing so with the Virtual Network Editor. The original guide says:

In a host OS terminal, run

VBoxManage dhcpserver add --netname dirtylan --ip 10.6.66.1 --netmask 255.255.255.0 -lowerip 10.6.66.64 --upperip 10.6.66.128 --enable

So I opened the Virtual Network Editor and added a new network, VMnet2. I changed the Subnet IP to 10.6.66.0 and left the Subnet Mask as 255.255.255.0. In the DHCP settings I changed it so that the Starting IP address is 10.6.66.64 and the ending IP address is 10.6.66.128:

1.png

2.png

Hit Ok and saved the changes. I am not sure if I understood the next part of the guide but it essentially says:

1. Shut down the kali VM

2. In VirtualBox Manager, right click on the kali VM and choose Settings

3. Choose Network

4.  Adapter1 should already be enabled and attached to NAT —change this adapter so it is attached to Internal Network and enter the name dirtylan in the box below.

5. Go to the Adapter 2 tab check Enable Network Adapter and attach it to NAT.

6. Click OK

I don't know which netork to change, VMnet8 is the only one using NAT as you can see in the screenshot. What should I do for this part?

Tags (2)
Reply
0 Kudos
1 Reply
bayupw
Leadership
Leadership

Hi, what do you need from network point of view and what was the reason you add a new network VMnet2?

I can see that you have the default VMnet0 Bridged, VMnet1 Host-only, and VMnet8 NAT

In my opinion, you don't need to add a new VMnet network if you don't need multiple Host-only network/network adapter on a VM.

You can just select any existing VMnet0/1/8

Please note that you can only have one NAT virtual network. If you have NAT on VMnet8 (default) you can't create a new VMnet with NAT unless you disable NAT on VMnet8.

Change NAT Settings

By default, the NAT device is connected to the VMnet8 virtual switch. You can have only one NAT virtual network.

If no other VMs are using VMnet8 and you would like to use NAT on specific subnet such as 10.6.66.0, you can just edit the VMnet8 network.

So in your case you could do:

1. delete VMnet2, edit VMnet8 subnet to 10.6.66.0

2. connect VM network adapter which need NAT to VMnet8

3. connect VM network adapter which need internal only network to VMnet1 or any newly created Host-only VMnet

Editing/deleting VMnet should be safe if no other VMs are using the VMnet.

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos