Background: Installing the CENTOS7 Desktop version in the virtual machine software VMware Workstation in the WIN10 system, no network is set up during installation
1. Confirm that your WIN10 system is open for both services: VMware DHCP Service and VMware NAT Service
Method: Computer--right--management--services and applications--services--find these two services manually open (right-click-Start)
2. In the virtual machine software right---set--Network adapter--(right option) network connection--select NAT
Note the status of the device here: Must be connected (I am the problem)
3. In your CentOS system in the network settings--add configuration--do not enter anything, save it
That is to add an automatically acquired network configuration.
4.ping your WIN10 local IP
The three pings are no problem. Firefox open Baidu homepage can access.
5. In order to prevent, later connection also configures the network:
Enter directory:
/etc/sysconfig/network-scripts/
Use the LS command to view the NIC configuration file name (the NIC name looks like a random number in CENTOS7, so the NIC name of each machine is not the same)
Edit the file with vim
Change the last line's onboot=no to Onboot=yes,
Last input: Wq save and exit, and then restart Network:
Service Network restart
That would be good.
The cable is unplugged after VMware installs CENTOS7