1、点击虚拟网络编辑器:![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726091752287-1551225141.png)
2、选择VMnet0为桥接模式,选择自动或者网卡![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726091911766-522373794.png)
3、右键VMware Network Adapter 属性![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726092126597-1628474447.png)
4、选中VMware Bridge Protocol ![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726092309055-1434267055.png)
5、选择共享![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726092357218-1095278524.png)
6、返回网络![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726092503714-1787858746.png)
7、虚拟机设置![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726092606827-365406139.png)
8、进入CentOS 7 系统进行操作
9、查看当前网卡信息
[root@localhost ~]# nmcli connection show
NAME UUID TYPE DEVICE
ens33 5dfbfd07-c796-49cb-a837-468af72b6d20 ethernet ---
10、自动获取IP地址
如果局域网里有DHCP服务器,那么可以使用自动获取来取得主机的IP等相关信息
[root@localhost ~]# nmcli connection modify ens33
> connection.autoconnect yes
> ipv4.method auto
11、重启网络
[root@localhost ~]# service network restart
12、PING 外部百度网站
![](https://images2018.cnblogs.com/blog/181464/201807/181464-20180726093011748-726230863.png)