1.首先在vmware找到编辑中的虚拟机网络编辑
在虚拟机中centos7配置网络
2.打开更改设置
在虚拟机中centos7配置网络
3.具体配置如下
在虚拟机中centos7配置网络

4.打开自己的本机网络配置
在虚拟机中centos7配置网络
5.进入设置中的VMware Network Adapter VMnet8进入属性进行修改在虚拟机中centos7配置网络
6.勾选如图设置
在虚拟机中centos7配置网络
7.配置internet协议版本四
在虚拟机中centos7配置网络
8.配置该网络共享
在虚拟机中centos7配置网络
9.进入虚拟机设置网络在虚拟机中centos7配置网络

10.配置情况如下
在虚拟机中centos7配置网络
11.输入命令更改配置文件vim /etc/sysconfig/network-scripts/ifcfg-ens33在虚拟机中centos7配置网络
12.对其中的BOOTPROTO修改为dhcp,ONBOOT为yes
在虚拟机中centos7配置网络
13.修改完成后重启网络 service network restart。重启后重启虚拟机。

相关文章: