当前位置:首页 > 虚拟机 > 正文

虚拟机桥接模式主机不能上网(虚拟机网桥接模式不能联网)

If the virtual machine is set to bridge, the real machine will not be able to access the Internet.
Set the physical network card to a static IP address, any network segment will do, then set the virtual network card to a dynamic IP, and then bridge! After your physical machine dials up to access the Internet, your virtual machine should also be able to access the Internet! I wish you success!

The virtual machine can access the Internet, but the host cannot, what should I do?
The following are some related tips:
1. Use ManageVirtualNetworks to turn off all the original redundant functions such as dhcp, etc. (In short, turn off whatever you can see. What, but don't delete the network card), and create another network card "...VMnet2", so that you have three network cards.
2. Change the network card setting of your virtual machine to the first item (bridging).
After completing the above two steps, your virtual machine will have an independent network card and be in a peer position with your real machine in a local network. If your real machine is in a local network , your virtual machine is also in the local network. At this time, you assign an IP to your virtual machine according to your local network. Then, your virtual machine should be able to ping other machines normally (including the local real machine). ).
The next step is to access the Internet. If your real machine is on the bureau network, then your virtual machine is also on the bureau network. After setting the bureau network IP of the virtual machine, follow the same method as the real machine to access the Internet, and connect the virtual machine to the bureau network. Just set up the machine as if it were a real machine. If your real machine is a single machine, then look down.
3. Use the ADSL dialing function that comes with win (it is not recommended to install additional dialing software. Note that it can only be used with winxp/win2003. If not, then install it), correct Set up ADSL dial-up and dial-up to access the Internet to ensure successful access to the real machine.
4. Right-click the network neighbor -> Properties, enter the network settings, find the ADSL dial-up, right-click it -> Properties, enter and open its Internet sharing, the shared network is "... ...VMnet2. After completion, the IP of your "...VMnet2" will be automatically set to 192.168.0.1.
5. Change the network card setting of your virtual machine to the first item (Bridge). Start the virtual machine, enter the network settings, and set the IP of the virtual machine to 192.168.0.2 (note that if your machine also has dual network cards and is also in the bureau network, make sure that 192.168.0.2 is not used by other people on the network. The computer is occupied, if so, replace the last digit with something else).
6. In the virtual machine, run "cmd" or "command" (under win9x) to bring up the DOS window. Use "ping192.168.0.1" to test whether it is connected to the host normally. If it is connected, you are half successful.
7. After the previous step is successful, your virtual machine has now successfully entered the office network. The next thing is much simpler. You only need to set the gateway of the virtual machine to 192.168.0.1, and then set the DNS to 192.168.0.1 (If under win9x, you are asked to fill in the host name, you can fill it in randomly, but you can’t do anything. function), then go to IE and click the "Automatically detect settings" item in the "Internet Options" and "LAN Settings" on the "Connection" page. Your virtual machine will be able to access the Internet.

8. Please be very careful that the above method turns on the Internet proxy function of your host. Your host must install a firewall (or correctly set the firewall that comes with win. It is recommended to install Skynet), otherwise , which may attract malicious proxy seekers on the Internet to use your computer for Internet access transfer (this will at least slow down your Internet speed).

What is the solution for the VMware virtual machine on Mac not being able to access the Internet?

One of the last things people want to see when using a computer is not being able to access the Internet, whether at work or playing games. Very unhappy. So what should I do if the VMware virtual machine cannot access the Internet on Mac?

Method steps

1. Observe the icon on the network adapter in the lower right corner of the virtual machine Is there a green light flashing? If the network adapter is gray, it means that the virtual machine's network is not turned on, but is disabled. Right-click the adapter, open [Settings], select [Connected], [Startup] Tick ​​in front of Connect].

 2. What network type did you choose? If you dial up the Internet through a router, then we usually set the virtual machine network to [Bridge Mode]

select NAT mode, and then click the [OK] button

< p> 4. Has the virtual computer obtained the IP address? In the virtual host, we check whether the IP address has been obtained. In NAT mode, the obtained IP and the IP of virtual network card 8 are in the same network segment! To view the IP address of virtual network card 8, please check it in the network center.

Properties, and then you can check whether the two virtual network cards are running normally.

[Properties] --->Status -->Support

7. Use the ping method to determine and ping different ID addresses according to your connection method.

For example: My connection method is NAT mode, then I will first Ping my gateway in the system, and then use a real computer to ping this gateway as well.

If the virtual machine cannot ping its own gateway, then there is a problem between the virtual network card 8 and the virtual machine. If the physical machine cannot ping the IP address of the virtual network card (actually it is the gateway of the virtual machine) , then there is also a problem with this virtual network card 8. For this kind of problem, we can only reinstall the virtual machine.

Supplement: How to solve the problem when the computer suddenly cannot access the Internet

Right-click the network icon, open the Network Sharing Center, and check the current status of our network connection.

The first item in the Network Sharing Center is a diagram of our current network connection. Check where there is a problem. Generally, a yellow exclamation mark or a red cross will appear where there is a connection problem.

Click the yellow exclamation point or red cross and the system will automatically detect the problem. Wait for a while and the results will come out. The system will also give you a prompt whether the problem can be solved.

The system prompts that it cannot be repaired, but in fact the problem has been solved, just connect again.

If the automatic repair still does not work, then our network connection settings need to be manually set. Open the Network Sharing Center and there is an option to manage adapters on the left, click to enter.

In it, you can see the open status of the adapters used by all network connections in the computer. Right-click and select the diagnostic operation to see if it can be repaired normally. Note that the adapter we need to select for diagnosis is the one we need to use. For example, the network cable is the local connection, and the wireless is the wireless network.

After diagnosis, we need to disable and restart it.