Detailed explanation of CentOS7 network setting tutorial in vmware
In order to be able to use XShell to manage our installed CentOS7 system, we must first set up the CentOS7 network so that it can be connected to the Internet.
- Select vmware edit, and then click virtual network editor
- Click to change settings (administrator rights are required)
- Select VMnet0 as the bridge mode, select automatic or network card
- Open the "Network and Sharing Center" and select the "VMware Virtual Ethernet Adapter for VMnet8" network card, right-click to select properties, check VMware Bridge Protocol, and set the ip to be obtained automatically
- Set the network settings of the virtual machine, select NAT mode
- Enter the command cd /etc/sysconfig/network-scripts to reach the directory, and enter ls to view all files, vi open and edit the ifcfg-ens33 file.
- Modify BOOTPROTO=dhcp, ONBOOT=yes. Enter i to enter the editing mode, after modifying, click ESC, enter: wq to save and exit
- Enter service network restart to restart the network
- Enter ifconfig to see if the network is successfully set up. With the ip number, the setting is successful
- Use installed XShell to link CentOS
- Link successfully
The above is the whole content of this article, I hope it will be helpful to everyone's study.