(Campus network) VMware virtual machine is not connected to the Internet


Author: time knitting a sweater

Source: CSDN

Original: https://blog.csdn.net/chenjin_chenjin/article/details/83617186

Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!


1, configure the virtual machine network to a NAT address. Process slightly, after a time to talk.

2, the virtual machine (here for Linux virtual machines) ONBOOT = NO change ONBOOT = yes

  Fu揍:

$ Cd / etc / sysconfig / Network-scripts / * to enter  the network configuration directory * /
$ LS / * View all current file (folder) * / directory 
the ifcfg-ens555 / * find similar file name of the file, and then edit it, generally speaking the name:  the ifcfg-ENS + Digital * /
$ Vi the ifcfg-ens555 / * edit this file if you have installed  vim  can also use  vim  to edit * /

Then find the bottom ONBOOT = NO change ONBOOT = yes

3, restart the network card

#services network restart

4, installed NET-Tools (for executing common commands)

#yum install net-tools

Note: If the virtual or not, you can select a virtual machine - Edit - Virtual Network Editor - restore the default settings. VM entry and then repeat steps 3 and 4.

Annex: wherein $ is the normal user mode, # is the root mode.

Guess you like

Origin www.cnblogs.com/ExileRiven/p/11297742.html