VMware12 installs CentOS7 and can access the Internet

1, prepare VMware12.exe and CentOS-7-x86_64-DVD-1804.iso image

2, create a new virtual machine, install

3 according to the wizard, install After viewing the virtual network editor

 

4, manually configure the virtual machine network IP access to the Internet

view configuration ifcfg-ens33, Note that the configured virtual machine ip address must be at 192.168.133.128 and 192.168. Between 133.254, this configuration is IPADDR=192.168.133.211

$ cat /etc/sysconfig/network-scripts/ifcfg-ens33

TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=noBOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens33 UUID=2fa6429d-e6d0-4262-b000-122836dd8116 DEVICE=ens33ONBOOT=yes IPADDR=192.168.133.211 GATEWAY=192.168.133.2 NETMASK=255.255.255.0 DNS=8.8.8.8

# Restart network loading configuration

$ service network restart

#View current network configuration information

$ ifconfig

5, access Internet test