IP address cannot be viewed through ifconfig in virtual machine

enter vim /etc/sysconfig/network-scripts/ifcfg-ens33 (vi followed by space), if the network IP address is set later, change the network segment to the current network segment, otherwise you cannot connect

Read More: