Virtual Machine Bridge Mode Connection

      Both virtual machines and computers are connected to the physical network of your current wifi, and the virtual machines choose to bridge to the physical network, which is equivalent to connecting to the router through your wireless network card. The virtual machine and the computer must rely on the network environment to connect. If the wifi network is disconnected, there is no network environment to rely on between the virtual machine and the computer. To achieve grid connectivity, it can be a wifi network or an RJ45 interface.

If the IP address of the virtual machine is in DHCP mode, the router automatically assigns an IP address. If the virtual machine IP address is set to manual mode, the corresponding IP will not be assigned by the router. Manually configure the virtual machine IP address, subnet mask, default gateway, and DNS server. According to the network transmission protocol, the access transmission of the same segment does not need to go through the router, and it can be directly transmitted. Generally, the automatic allocation of external routers is to allocate IP addresses of 100-199. If you set your own IP to be greater than 199, it will not cause conflicts in the network.

 

First, get the IP address in the win10 network



 

 

 

 Second, set the virtual machine to connect to the computer.

 Open the virtual machine to be used, right-click [Settings], set the bridge mode, and connect to the physical network

 

 

 3. Set the IP, subnet mask, default gateway, DNS server of the virtual machine manually

        Note: The default gateway and DNS server must be the same as the default gateway and DNS server of Windows

        Enter the settings page centos7/centos6.3




 
      Set IP, subnet mask, default gateway, DNS server page centos7/centos6.3



 

 

4. Test



 

Five, xshell connection test



 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326299147&siteId=291194637