1. bridged networking)
A bridge network is a bridge between a local physical network card and a virtual network card through a vmnet0 virtual switch, the physical and virtual NICs are in the same position on the topology (the virtual Nic is neither adepter vmnet1 nor adepter vmnet8 ).
Ii. Nat Mode
The VMware network adepter vmnet8 virtual Nic is used in the NAT network. The VMware network adepter vmnet8 virtual Nic on the host is directly connected to the vmnet8 virtual switch to communicate with the virtual Nic.
Iii. Host-only mode
In host-only mode, the virtual network is a fully closed network, and the only access to the virtual network is the host. In fact, the host-only network is similar to the NAT network. The difference is that the host-only network does not have a NAT service, so the virtual network cannot connect to the Internet. Communication between hosts and virtual machines is achieved through the VMware network adepter vmnet1 virtual network card.
Virtual Machine Internet poisoning, physical machine is generally not poisoned (the probability of poisoning is very low), but it does not rule out the possibility of poisoning!
Certificate --------------------------------------------------------------------------------------------------------------------------------------------------------------------
Features and communication rules of VMware's four network modes:
(1) bridged Mode
In this way, the IP address of the virtual system can be set to the same network segment as the local system. The virtual system is equivalent to an independent machine in the network, and is inserted into a switch together with the local machine, other machines in the network can access the virtual system, and the virtual system can also access other machines in the network. Of course, two-way access to the local system is not a problem.
(2) Nat
This method can also achieve two-way access between the local system and the virtual system. however, other machines in the network cannot access the virtual system, but the virtual system can access other machines in the network through the local system using the NAT protocol, and access the internet like the physical machine
(3) Host-only mode
As the name suggests, this method only supports Network Communication between virtual machines and hosts. Other machines in the network cannot access the virtual system or other machines.
(4) custom
This is very flexible. You can set it according to your preferences .....
Example:
Bridged Mode
Local connection settings of the Physical Machine
IP Address: 192.168.1.10
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1 (based on your network conditions)
Preferred DNS: 8.8.8.8
Virtual System local connection settings
IP Address: 192.168.1.11
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1 (based on your network conditions)
Preferred DNS: 8.8.8.8
In this way, the virtual system is equivalent to a real machine on the network that can access the Internet.
2. Nat Mode
This method does not occupy IP addresses in the network. As long as the physical host can access the Internet, the virtual system can access the Internet.
Modify the virtual network card VMware network adepter vmnet8 of the physical host. For example, set it to 192.168.10.10 and the mask is 255.255.255.0.
Virtual System local connection settings
IP Address: 192.168.10.11
Subnet Mask: 255.255.255.0
In this way, the virtual system can access the Internet like the local host. The specific gateway is set according to the actual situation.
To be more secure, use the bridged mode.