1, first check the VMware network configuration [Edit] menu -> [Virtual Network Editor]
Write down the IP subnets, subnet mask, gateway IP
2, configure a Linux virtual machine
3, start the Linux system and log in.
Check the network configuration file which ip addr []
ip addr
4, search it and edit the configuration file location
#搜索 etc 目录下文件名称包含ens33的文件
find /etc -name *ens33*
[Edit] file ifcfg-ens33
vi /etc/sysconfig/network-scripts/ifcfg-ens33
5, restart verification
#重启网络服务[一般只重启网络服务即可生效]
service network restart
#重启linux系统[不用操作此步骤]
reboot
#验证网络
ping www.baidu.com
6, view the virtual machine IP
#执行【ip addr show】命令或它的缩写
ip a s