windows11使用VMware时无法连接网络
> windows10可以根据需要升级成window11了,我已经升级完成,系统展示界面如下
## win10升级win11
### (1)设置界面
![系统界面.png](http://www.icode9.com/i/li/?n=2&i=images/20210703/1625327418452441.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
### (2)版本号
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210703/1625327438656410.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
## 问题描述VMware使用桥接模式情况下,无法ping通win10主机
> 解决方法:将虚拟机网络配置文件Private改为Public
### (1) 虚拟机ping主机,出现Destination Host Unreachable
```
[root@mmx ~]# ping -c 3 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
From 192.168.0.100 icmp_seq=1 Destination Host Unreachable
From 192.168.0.100 icmp_seq=2 Destination Host Unreachable
From 192.168.0.100 icmp_seq=3 Destination Host Unreachable
--- 192.168.0.10 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 40ms
pipe 3
```
### (2)右键右下角网络图表
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210703/1625327573685137.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
### (3)点击以太网
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210703/1625327573332052.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210703/1625327586201629.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
### (4)将Private切换成Public,虚拟机就能连通主机
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210703/1625327652200965.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
### (5)虚拟机再次ping主机
```
[root@mmx ~]# ping 192.168.0.20 -w 0.1 -c 3
PING 192.168.0.20 (192.168.0.20) 56(84) bytes of data.
64 bytes from 192.168.0.20: icmp_seq=1 ttl=128 time=0.357 ms
64 bytes from 192.168.0.20: icmp_seq=1 ttl=128 time=0.406 ms (DUP!)
64 bytes from 192.168.0.20: icmp_seq=2 ttl=128 time=0.381 ms
64 bytes from 192.168.0.20: icmp_seq=2 ttl=128 time=0.488 ms (DUP!)
64 bytes from 192.168.0.20: icmp_seq=3 ttl=128 time=0.377 ms
--- 192.168.0.20 ping statistics ---
3 packets transmitted, 3 received, +2 duplicates, 0% packet loss, time 41ms
rtt min/avg/max/mdev = 0.357/0.401/0.488/0.052 ms
```