VMware's unbantu18.04 uses the host agent to access the network

Written in front:

virtual machine ubantu18.04

Proxy software kitten 0.20.7

Host window10

        Recently, a lot of learning ros requires foreign networks, so I want to learn how to make the virtual machine use a local proxy. I found that there are many tutorials on the Internet, but I tried to do several that did not meet my situation. Finally, I followed the knowledge Almost an article has been successfully realized. I will record it here and give you some suggestions. The reference Zhihu article is as follows:

How does a VMware virtual machine use a host agent?

csdn cannot upload agent software information, and will not pass the review, so you can refer to the above article, I just record my mistakes here. Prevent everyone from stepping on the pit.

To make an addition:

This article is written in great detail, and you can follow along to complete it. But when looking at the ip of the kitten, because the version is 0.20.7, hovering the mouse over the Allow LAN switch can no longer display the ip. I checked it by clicking the network button:

 

Encountered errors:

I tried a little error:

1. I tried bridge mode, but it didn't work

2. I tried the 1080 and 10800 interfaces that use the socket protocol mentioned on the Internet. This is not correct for Clash, because everyone’s kitten has different interfaces. For example, mine is 7890. But I will use the socket in the online tutorial The 1080 replaced by 7890 is still not successful.

3 Try to specify the gateway of the virtual machine so that the virtual machine can access the host, that is, change the wired setting, which leads me to fail even if I follow the final tutorial. as follows:

Not only was it unsuccessful, but it led me to follow  the VMware virtual machine how to use the host agent?  This tutorial did not succeed the first time, which is why I wrote this blog.

The correct wire information is as follows:

 That is, ip, default routing and DNS are in one network number.

If you accidentally changed the default route, you can reset it by clicking the remove connection profile button:

 Successful connection:

After I deleted the previously set specified route, I successfully used the host's network to access:

Guess you like

Origin blog.csdn.net/weixin_53665577/article/details/129768485