Copyright statement: This article is the original article of the blogger, please indicate the source for reprinting. https://blog.csdn.net/gongxifacai_believe/article/details/53056446
1、 Install CentOS 7 system
The steps to install CentOS 7 on the VMware Workstation virtual machine are as follows:
Click "Begin Installation" to start the installation.
After the installation is complete, enter the text mode interface, follow the prompts, accept the license and create a user, you can enter the graphical desktop system.
Enter the root user, as shown in the figure below.
The CentOS 7 desktop system is shown in the figure below.
2、 Network Configuration
Go to /etc/sysconfig/network-scripts and open the ifcfg-eno16777736 file.
Change BOOTPROTO=none to BOOTPROTO=static
Restart the network service.
The virtual machine uses VMware Network Adapter VMnet8 network card, NAT mode Internet access. The IP address of VMnet8 is: 192.168.217.1, and the IP address of virtual machine is: 192.168.217.2. VMnet8 acts as the gateway of the virtual machine to forward network packets to the physical network card of the physical machine, that is, the virtual machine shares with the physical host through the virtual network card VMnet8 The IP address of the physical host goes online. The virtual machine configuration is as follows.
If you did not configure the network when installing CentOS 7, you can also use the nmtui command to configure the network after the system is successfully installed. You need to "Edit Configuration" -> "Activate Connection" -> "Set Host Name" respectively.
After the configuration is completed using the nmtui command, go to /etc/sysconfig/network-scripts/, change BOOTPROTO=none in the ifcfg-eno16777736 file to BOOTPROTO=static, and then use service network restart to restart the network service, as described above, network The configuration can be successful.
Recommended Posts