On the Hardware tab, click on the adapter you need to modify.
Select the network type to use:
Bridge mode:This connects the virtual network adapter directly to the physical network
NAT: This allows the virtual network adapter to share the host’s IP address
Host Only: This creates a private network that the virtual network adapter shares with the host
Custom: This allows you to create your own virtual network
Note: Although VMnet0, VMnet1 and VMnet8 are technically available in this menu, they are usually used for bridged, host-only, and NAT configurations, respectively.
Click OK.
To add a network adapter:
Click VM > Settings > Add.
In the Add Hardware Wizard, select a network adapter and click Next.
Configure the network adapter in the various modes and configure its status. If you are using multiple NICs, bridge each adapter individually instead of using Automatic bridging for the best results.
Click Finish.
Click OK.
To add or remove a host network adapter from the list of included adapters:
Click Edit > Virtual Network Editor.
Select Connect a host virtual adapter to this network.
Click Apply.
To change DHCP settings:
Click Edit > Virtual Network Editor and select the virtual network adapter.
Select Use local DHCP service to distribute IP address to VMs and click DHCP settings.
Modify the third number in the IP address. For example, 192.168.x.0 or 198.16.x.0. In general, do not change the subnet mask. Certain virtual network services might not work as well with a customized subnet mask.
Click Apply.
To configure NAT:
Click Edit > Virtual Network Editor.
Select VMnet8 and click NAT settings.
Enter the Gateway IP and click Add.
Select a host port, virtual machine IP address, and virtual machine port, and click OK.
Configure your DNS settings.
The NAT device is a DNS proxy. It forwards DNS requests from the virtual machines to a DNS server that the host knows. Responses return to the NAT device, which then forwards them to the virtual machines.
(Windows hosts only) Configure your NetBios settings and click OK.