How to Create a Virtual Network Using VMware Workstation

Table of contents:

How to Create a Virtual Network Using VMware Workstation
How to Create a Virtual Network Using VMware Workstation
Anonim

VMware Workstation is very useful software, used to develop and test a system that runs on a real network. I'll give you an example, showing how to create a sophisticated virtual network with VMware Workstation, which can be used to test a database server system. In this example, it is a database server connected through a firewall to an external network. An Administrator computer is connected to the database server through a second firewall. The virtual network looks like this: Four virtual machines will be created and the virtual machine settings editor will be used to adjust the settings of their virtual network adapters. The bridged network adapters will make virtual machine 1 work in a bridged network so that the virtual machine can connect to an external network using the host computer's network adapter. The custom adapter should be added when creating virtual machine 1 so that it can connect with VMnet2. The adapter will also need to be modified so that the custom adapter causes virtual machine 2 to allow machine 1 to connect with VMnet2. Virtual machine 3 will need to have two custom adapters. One of them is to connect via VMnet2 and the other is for them to connect with VMnet3. Virtual machine 4 will need only one custom adapter to connect to VMnet3. The IP address of each adapter must be set correctly for the virtual network to function perfectly.

Steps

Create a Virtual Networks by Using VMware Workstation Step 1
Create a Virtual Networks by Using VMware Workstation Step 1

Step 1. Open Virtual Machine 1 by clicking in the left window, but do not turn it on

Create a Virtual Networks by Using VMware Workstation Step 2
Create a Virtual Networks by Using VMware Workstation Step 2

Step 2. Choose VM> Settings

Create a Virtual Networks by Using VMware Workstation Step 3
Create a Virtual Networks by Using VMware Workstation Step 3

Step 3. In the hardware tab, click Network Adapter

Create a Virtual Networks by Using VMware Workstation Step 4
Create a Virtual Networks by Using VMware Workstation Step 4

Step 4. Select bridge for the type of network to use

Create a Virtual Networks by Using VMware Workstation Step 5
Create a Virtual Networks by Using VMware Workstation Step 5

Step 5. Click OK

Create a Virtual Networks by Using VMware Workstation Step 6
Create a Virtual Networks by Using VMware Workstation Step 6

Step 6. Choose VM> Settings

Create a Virtual Networks by Using VMware Workstation Step 7
Create a Virtual Networks by Using VMware Workstation Step 7

Step 7. On the Hardware tab, click Add

Create a Virtual Networks by Using VMware Workstation Step 8
Create a Virtual Networks by Using VMware Workstation Step 8

Step 8. Select Network Adapter and click Next

Create a Virtual Networks by Using VMware Workstation Step 9
Create a Virtual Networks by Using VMware Workstation Step 9

Step 9. Select Custom, choose to use VMnet2 network from the drop down menu

Create a Virtual Networks by Using VMware Workstation Step 10
Create a Virtual Networks by Using VMware Workstation Step 10

Step 10. Click Finish

Create a Virtual Networks by Using VMware Workstation Step 11
Create a Virtual Networks by Using VMware Workstation Step 11

Step 11. Open Virtual Machine2 by clicking in the window on the right, but do not turn it on

Create a Virtual Networks by Using VMware Workstation Step 12
Create a Virtual Networks by Using VMware Workstation Step 12

Step 12. On the Hardware tab, click Network Adapter

Create a Virtual Networks by Using VMware Workstation Step 13
Create a Virtual Networks by Using VMware Workstation Step 13

Step 13. In the right window, select Custom and choose to use VMnet2 network from the drop-down menu

Create a Virtual Networks by Using VMware Workstation Step 14
Create a Virtual Networks by Using VMware Workstation Step 14

Step 14. Open Virtual Machine3 by clicking on the window on the right, but do not turn it on

Create a Virtual Networks by Using VMware Workstation Step 15
Create a Virtual Networks by Using VMware Workstation Step 15

Step 15. On the Hardware tab, click Network Adapter

Create a Virtual Networks by Using VMware Workstation Step 16
Create a Virtual Networks by Using VMware Workstation Step 16

Step 16. In the right window click on Custom and choose to use the VMnet2 system from the drop-down menu

Create a Virtual Networks by Using VMware Workstation Step 17
Create a Virtual Networks by Using VMware Workstation Step 17

Step 17. Use the virtual machine settings to add a second network adapter

Create a Virtual Networks by Using VMware Workstation Step 18
Create a Virtual Networks by Using VMware Workstation Step 18

Step 18. Connect the second network adapter to the custom network (VMnet3)

Create a Virtual Networks by Using VMware Workstation Step 19
Create a Virtual Networks by Using VMware Workstation Step 19

Step 19. Open the Virtual Machine4 by clicking on the window on the right, but do not turn it on

Create a Virtual Networks by Using VMware Workstation Step 20
Create a Virtual Networks by Using VMware Workstation Step 20

Step 20. Use the virtual machine settings to add a network adapter

Create a Virtual Networks by Using VMware Workstation Step 21
Create a Virtual Networks by Using VMware Workstation Step 21

Step 21. Connect the adapter to the custom network (VMnet3)

Create a Virtual Networks by Using VMware Workstation Step 22
Create a Virtual Networks by Using VMware Workstation Step 22

Step 22. Choose Edit> Virtual Network Editor

Create a Virtual Networks by Using VMware Workstation Step 23
Create a Virtual Networks by Using VMware Workstation Step 23

Step 23. In the Virtual Network Editor dialog box, click Add Network

Create a Virtual Networks by Using VMware Workstation Step 24
Create a Virtual Networks by Using VMware Workstation Step 24

Step 24. In the dialog box to add a virtual network, choose the VMnet2 network by adding it from the drop-down menu

Create a Virtual Networks by Using VMware Workstation Step 25
Create a Virtual Networks by Using VMware Workstation Step 25

Step 25. Click OK

Create a Virtual Networks by Using VMware Workstation Step 26
Create a Virtual Networks by Using VMware Workstation Step 26

Step 26. Add VMnet3

Create a Virtual Networks by Using VMware Workstation Step 27
Create a Virtual Networks by Using VMware Workstation Step 27

Step 27. Click DHCP Settings, check the IP address range for VMnet2 and VMnet3 in the DHCP settings dialog

Create a Virtual Networks by Using VMware Workstation Step 28
Create a Virtual Networks by Using VMware Workstation Step 28

Step 28. Power up the four virtual machines

Create a Virtual Networks by Using VMware Workstation Step 29
Create a Virtual Networks by Using VMware Workstation Step 29

Step 29. Open the firewall in Virtual Machine1 and Virtual Machine3 but close the others

Create a Virtual Networks by Using VMware Workstation Step 30
Create a Virtual Networks by Using VMware Workstation Step 30

Step 30. Set the IP address for the adapter in VM 1 by keeping the default settings for the bridged network adapter and assigning the IP address to the adapter to connect to VMnet2 in the range you are using with VMnet2

Create a Virtual Networks by Using VMware Workstation Step 31
Create a Virtual Networks by Using VMware Workstation Step 31

Step 31. Set the IP address for the two adapters in Virtual Machine2 by assigning an IP address to the adapter to connect to VMnet2 in the range you are using with WMnet2

Create a Virtual Networks by Using VMware Workstation Step 32
Create a Virtual Networks by Using VMware Workstation Step 32

Step 32. Set the IP address in Virtual Machine3 by assigning the IP address to the adapter connecting to VMnet2 in the range you are using with VMnet2 and an IP address to the adapter connecting to VMnet3 in the range you are using with VMnet3

Create a Virtual Networks by Using VMware Workstation Step 33
Create a Virtual Networks by Using VMware Workstation Step 33

Step 33. Set the IP address for the adapter in Virtual Machine4 by assigning an IP address to the adapter to connect to VMnet3 in the range you are using with VMnet3

Advice

  • Determine the network addresses used for VMnet2 and VMnet3: Open a command prompt and run the following command:
  • ipconfig / all

Recommended: