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. The SYSTEMCTL command combines the service and Chkconfig commands together. This enables two commands to function with a single command.
The basic operation format of the SYSTEMCTL command is:
Systemctl Action Service name.
You can take a look at--help's explanation.
Use the Systemctl command to remember Start,stop,restart,status,enable,disable,is-enabled. You can use it very well!
Centos7.0 Vmware10.0.3 Network Bridging configuration