According to the online relevant information and practical experience summarized as follows set up the Internet steps. True and effective, into the subject.
To set up a virtual machine to go online
1. Network adapter, virtual machine settings
2. Editor, Virtual Machine Network editor->vmnet8 refer to the following settings and configure the network segment scope of the virtual machine
3. Open the VMnet8 of the Control Panel to enter the IP address configured on the above network segment as follows
4.CentOS Open Terminal Terminal
Cd/etc/sysconfig/network-scripts
VI Ifcfg-ens33
Modify the configuration file as follows
Type=ethernet
Proxy_method=none
Browser_only=no
Bootproto=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=a5e84781-28af-4767-88e8-cee0c51b4b5c
Device=ens33
Onboot=yes
ipaddr=192.168.20.100
gateway=192.168.20.2
netmask=255.255.255.0
/* Configure DNS, default */
Vi/etc/resolv.conf
4. Restart the network
Systemctl Stop NetworkManager
Systemctl Restart Network
Systemctl Start NetworkManager
5. Turn off the firewall
Temporarily closed
Systemctl Stop Firewalld
Disable boot start
Systemctl Disable FIREWALLD
6. Test if you can surf the internet
Ping www.baidu.com
Test whether the host is interoperable with the virtual machine (the virtual machine address I configured is 192.168.20.100)
Ping 192.168.20.100
Finally accomplished. hehe ~
Set up VMware CentOS7 virtual machine Internet (configure static address)