The first step is to set the Vmware10.0.3 to bridge mode.
CentOS 7.0 is installed by default and does not automatically open the network connection!
cd/etc/sysconfig/network-scripts/#进入网络配置文件目录
VI ifcfg-eno16777736 #编辑配置文件, add modify the following content
Hwaddr=00:0c:29:8d:24:73type=ethernetbootproto=static #启用静态IP地址DEFROUTE =yespeerdns=yespeerroutes=yesipv4_ Failure_fatal=noipv6init=yesipv6_autoconf=yesipv6_defroute=yesipv6_peerdns=yesipv6_peerroutes=yesipv6_failure_ Fatal=noname=eno16777736uuid=ae0965e7-22b9-45aa-8ec9-3f0a20a85d11onboot=yes #开启自动启用网络连接IPADDR0 =192.168.21.128 # Set IP address prefixo0=24 #设置子网掩码GATEWAY0 =192.168.21.2 #设置网关DNS1 =8.8.8.8 #设置主DNSDNS2 =8.8.4.4 #设置备DNS: wq! #保存退出 use systemctl restart Network.service to restart the network to complete the bridge networking configuration.
VMware configures CENTOS7 network in bridged mode