This is very simple. There are three modes of the virtual machine network environment configuration in the three modes of NAT (network source address installation), Bridge (bridge), and host-only. When you add a network card for virtual machines), you choose these three modes, which is actually a virtual switch. While your virtual machine is VMware or, after installation, there should be a default host-only network in the network configuration. The network card settings of the physical host should have a physical network card and a Host-only virtual network card. Now, the virtual machine ROS system you created has 2 network cards. The two network cards are set to the bridge to receive a physical network card. The following is called Host-ONLY network card. The physical network card of the physical host sets an address and a sub -network cover from different network segments from your superior router. Essence The bridge card of the ROS virtual machine is with the physical network card bridge. The bridge network card set up is an external network card. The address is set to the same network segment of your superior route. The default gateway is the inner network address of the superior router. The host-only network card of the ROS virtual machine is an internal network card. You can set an internal network address, such as 192.168.56.254, the host-only network card of the physical host and the virtual machine's internal network card bridge, the address is set to 192.168.56.1, the gateway is the gateway, the gateway is the gateway. The gateway is the gateway. 192.168.56.254. Now you can connect the ROS of the virtual machine through Winbox on the physical host. Then confist the default routing gateway and NAT in the ROS to access the Internet.
This is very simple. There are three modes of the virtual machine network environment configuration in the three modes of NAT (network source address installation), Bridge (bridge), and host-only. When you add a network card for virtual machines), you choose these three modes, which is actually a virtual switch.
While your virtual machine is VMware or, after installation, there should be a default host-only network in the network configuration. The network card settings of the physical host should have a physical network card and a Host-only virtual network card.
Now, the virtual machine ROS system you created has 2 network cards. The two network cards are set to the bridge to receive a physical network card. The following is called Host-ONLY network card.
The physical network card of the physical host sets an address and a sub -network cover from different network segments from your superior router. Essence The bridge card of the ROS virtual machine is with the physical network card bridge. The bridge network card set up is an external network card. The address is set to the same network segment of your superior route. The default gateway is the inner network address of the superior router. The host-only network card of the ROS virtual machine is an internal network card. You can set an internal network address, such as 192.168.56.254, the host-only network card of the physical host and the virtual machine's internal network card bridge, the address is set to 192.168.56.1, the gateway is the gateway, the gateway is the gateway. The gateway is the gateway. 192.168.56.254. Now you can connect the ROS of the virtual machine through Winbox on the physical host. Then confist the default routing gateway and NAT in the ROS to access the Internet.