How to connect virtual machine centos to the Internet? How to access the Internet with a CentOS7 virtual machine
Edit the virtual machine settings, select the NAT address translation method for the network adapter mode
Open the VMware menu, edit -Virtual network editor, in the pop-up dialog box, click NAT settings, write down the subnet IP, subnet mask, gateway address information
##Enter the CentOS7 virtual machine in VMware, and the command to enter the directory is as follows:cd /etc/sysconfig/network-scripts
ls
vi ifcfg-ens33
service network restart
ping www.baidu.com
https://www .php.cn/course/list/33.html
The above is the detailed content of How to connect virtual machine centos to the Internet. For more information, please follow other related articles on the PHP Chinese website!